Skip to content

Instantly share code, notes, and snippets.

View pelly-ryu's full-sized avatar

pelly ryu pelly-ryu

View GitHub Profile
@pikanji
pikanji / graphql-directives.js
Last active June 13, 2024 01:19
Amplify GraphQL Directive Definitions
import gql from 'graphql-tag';
// https://docs.amplify.aws/cli-legacy/graphql-transformer/directives/
const clientSchemaExtensions = gql`
# https://docs.amplify.aws/cli/graphql/data-modeling/#how-it-works
directive @model(
queries: ModelQueryMap
mutations: ModelMutationMap
subscriptions: ModelSubscriptionMap
timestamps: TimestampConfiguration