graphql-schema-syntax-extension
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

graphql-schema-syntax-extension

Install

npm i graphql-schema-syntax-extension

Usage

import graphqlSchemaSyntaxExtension from 'graphql-schema-syntax-extension'
 
const Schema = /* GraphQL */`
interface Node {
    id: ID! @id
    createdAt: DateTime! @createdAt
    updatedAt: DateTime! @updatedAt
}
 
interface DataArray {
    labels: [[String!]]!
    typedArray: TypedArray!
    shape: [Number!]!
    dtype: DType!
}
 
type User implements Node {
    type: UserType!
    name: String!
}
 
type Simple {
    type: UserType!
    name: String!
}
 
type DataUser implements Node & DataArray {
    type: UserType!
    name: String!
}
 
type Spread {
    ...Simple
    gg: Number!
    l: String!
}
`
 
console.log(graphqlSchemaSyntaxExtension(TestSchema))

Package Sidebar

Install

npm i graphql-schema-syntax-extension

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

12.4 kB

Total Files

9

Last publish

Collaborators

  • nicholastancredi