Skip to content

Instantly share code, notes, and snippets.

@NoemiRozpara
Last active March 17, 2020 16:14
Show Gist options
  • Save NoemiRozpara/1ffe36f82dc8266994f4ce423b2f1756 to your computer and use it in GitHub Desktop.
Save NoemiRozpara/1ffe36f82dc8266994f4ce423b2f1756 to your computer and use it in GitHub Desktop.
import { filter } from "compression"
query getListings($organizationId: ID!) {
listings(organizationId: $organizationId) @client {
id
name
passes(
sortBy // enum:
asc // bool
filter: {
driver: {
name: {
contains: 'Adam'
}
} // etc for other fields
}
) {
id
type // enum: guest monthly
number
state // enum: checkIn checkOut upcoming pastDue
driver {
name
id
organization {
name
}
}
vehicle {
description
licensePlate
}
location {
stall
keys
}
startDate
renews
checkIn {
time
gate
}
checkOut {
time
gate
}
payment {
price
currency
paymentMethod // enum type?
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment