Last active
March 17, 2020 16:14
-
-
Save NoemiRozpara/1ffe36f82dc8266994f4ce423b2f1756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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