-
-
Save valentinalexeev/9d98076d2903b2a09b84ee0fef1493af 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
{ | |
"Nicosia": { | |
"__typename": "City", | |
"name": "Nicosia" | |
} | |
} |
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
scalar DateTime | |
type CityTranslation { | |
language: String! | |
name: String | |
} | |
type City @GQLifyModel(dataSource: "firestore", key: "cities") { | |
name: String! @unique @ID | |
timezone: String! | |
translation: [CityTranslation] | |
events: [Event] | |
} | |
type Tag @GQLifyModel(dataSource: "firestore", key: "tags") { | |
name: String! @unique @ID | |
emoji: String | |
events: [Event] | |
} | |
type EventThumbnail { | |
url: String | |
} | |
type Event @GQLifyModel(dataSource: "firestore", key: "events") { | |
title: String! | |
description: String! | |
location: String! | |
address: String! | |
dateStart: DateTime! | |
dateEnd: DateTime | |
url: String! @unique | |
translated: Boolean | |
ready: Boolean | |
loaded: Boolean | |
tags: [Tag!] | |
city: City | |
thumbnail: EventThumbnail | |
contact: String | |
} |
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
{ | |
"__typename": "Event", | |
"address": "address", | |
"city": "Nicosia", | |
"dateEnd": "", | |
"dateStart": "", | |
"description": "test", | |
"language": "", | |
"loaded": false, | |
"location": "location", | |
"ready": false, | |
"source": "", | |
"tags": { | |
"AErGsXIuh2z4Pux0RX2e": true, | |
"XGtMxNrR8iCPGRPsDMv3": true, | |
} | |
} |
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
{ | |
"data": { | |
"events": [ | |
{ | |
"title": "title", | |
"tags": [], | |
"city": null | |
} | |
] | |
} | |
} |
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
# Write your query or mutation here | |
query { | |
events { | |
title | |
tags { | |
name | |
} | |
city { | |
name | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm missing the resolved relations in https://gist.github.com/valentinalexeev/9d98076d2903b2a09b84ee0fef1493af#file-query-response-json-L6-L7