Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active August 1, 2024 20:37
Show Gist options
  • Select an option

  • Save wilmoore/5f2e4fed8473703b68b0b5b551134cf6 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/5f2e4fed8473703b68b0b5b551134cf6 to your computer and use it in GitHub Desktop.
Software Engineering :: API :: Architectural Style :: GraphQL :: Training :: Learning GraphQL :: 2. GraphQL Queries

Software Engineering :: API :: Architectural Style :: GraphQL :: Training :: Learning GraphQL :: 2. GraphQL Queries

⪼ Made with 💜 by Polyglot.

enum LiftStatus { OPEN CLOSED HOLD }

image

status: OPEN

enums in query do not need to be quoted image

field alias

image

query ($status: LiftStatus) { ... }

Query Variables are passed in as JSON, so you'll have to use double quotes (")

image

AKA: type relationships

image

Multiple Anonymouse Queries (Error)

image

Operation Names

Convention: PascalCase

image


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment