Created
July 21, 2020 20:58
-
-
Save mlg87/d53f715dc0b8a9f32c24eef6d44e5a69 to your computer and use it in GitHub Desktop.
Using Apollo Client for global state management code samples - src_Balloon_queries.ts
This file contains hidden or 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
// src/Balloon/queries.ts | |
import gql from "graphql-tag"; | |
// | |
// ─── GQL TAGS ─────────────────────────────────────────────────────────────────── | |
// | |
export const GetSelectedBalloonLocal = gql` | |
query GetSelectedBalloonLocal { | |
selectedBalloon @client { | |
color | |
id | |
} | |
} | |
`; | |
export const GetBalloons = gql` | |
query GetBalloons { | |
balloons { | |
color | |
id | |
} | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment