Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderBollbach/b9dea8bd75d56a07c220d6713c2e28d8 to your computer and use it in GitHub Desktop.
Save AlexanderBollbach/b9dea8bd75d56a07c220d6713c2e28d8 to your computer and use it in GitHub Desktop.
enum GQLRequest {
case mutation(NonEmptySet<Mutation>)
case query(NonEmptySet<Query>)
enum Query {
case getCurrentUser(NonEmptySet<User>)
case currentUserPermissions(args: GQLRequestArgs.GetCurrentUserPermissions)
case getProjectInfo(
args: GQLRequestArgs.GetProjectInfo,
fields: NonEmptySet<Project>
)
case getGridLevel(
args: GQLRequestArgs.GetGridLevel,
fields: NonEmptySet<Grid>
)
case getMetadataById(
args: GQLRequestArgs.GetMetadataById,
fields: NonEmptySet<Grid.Node>
)
case getSuggestionsAndRecentSearches(
args: GQLRequestArgs.GetSearchSuggestionsAndRecents,
fields: NonEmptySet<SearchSuggestions>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment