Skip to content

Instantly share code, notes, and snippets.

@albertstill
Last active August 29, 2015 14:24
Show Gist options
  • Save albertstill/c7180713915af6766932 to your computer and use it in GitHub Desktop.
Save albertstill/c7180713915af6766932 to your computer and use it in GitHub Desktop.
query IntrospectionMovieNestedFieldsQuery {
__type(name: "Movie") {
name
description
fields {
name
description
type {
name
kind
ofType {
name
kind
}
}
}
}
}
{
"data": {
"__type": {
"name": "Movie",
"description": "A movie, series or episode",
"fields": [
{
"name": "title",
"description": "The title",
"type": {
"name": null,
"kind": "NON_NULL",
"ofType": {
"name": "String",
"kind": "SCALAR"
}
}
},
{
"name": "director",
"description": "The director",
"type": {
"name": "String",
"kind": "SCALAR",
"ofType": null
}
},
{
"name": "actors",
"description": "List of starring actors",
"type": {
"name": null,
"kind": "LIST",
"ofType": {
"name": "String",
"kind": "SCALAR"
}
}
},
{
"name": "writers",
"description": "List of the writers",
"type": {
"name": null,
"kind": "LIST",
"ofType": {
"name": "String",
"kind": "SCALAR"
}
}
},
{
"name": "released",
"description": "Release date",
"type": {
"name": "String",
"kind": "SCALAR",
"ofType": null
}
},
{
"name": "plot",
"description": "The plot",
"type": {
"name": "String",
"kind": "SCALAR",
"ofType": null
}
},
{
"name": "awards",
"description": "The awards",
"type": {
"name": "String",
"kind": "SCALAR",
"ofType": null
}
},
{
"name": "poster",
"description": "A poster image URL",
"type": {
"name": "String",
"kind": "SCALAR",
"ofType": null
}
},
{
"name": "type",
"description": "Whether its a movie, series or episode",
"type": {
"name": "Type",
"kind": "ENUM",
"ofType": null
}
},
{
"name": "imdb",
"description": "IMDb specific fields",
"type": {
"name": "Imdb",
"kind": "OBJECT",
"ofType": null
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment