Skip to content

Instantly share code, notes, and snippets.

@captaincole
Last active December 20, 2019 20:12
Show Gist options
  • Select an option

  • Save captaincole/09c98361225fa4d4ec40318679ee8377 to your computer and use it in GitHub Desktop.

Select an option

Save captaincole/09c98361225fa4d4ec40318679ee8377 to your computer and use it in GitHub Desktop.
Graphq
// GraphQL Query
ordersByAsset(assetType: $assetType) {
id
asset_type
}
// GraphQL Codegen
export enum OrderAssetType {
CommonStock = 'common_stock',
PreferredStock = 'preferred_stock',
}
export type UserReadOrdersByAssetArgs = {
assetType: OrderAssetType
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment