0.7.20 • Published 12 days ago

@anchan828/gen-graphql-merge-schema v0.7.20

Weekly downloads
382
License
MIT
Repository
github
Last release
12 days ago

@anchan828/gen-graphql-merge-schema

Description

Merge multiple schema. merge-graphql-schemas based.

Supported directives: @orderBy @where @relay

Quick Start

import { mergeTypes } from "@anchan828/gen-graphql-merge-schema";

const types = [`type Test {id: ID}`, `type Test2 {tests: [Test] @orderBy @where @relay }`];

mergeTypes(types);
//=>  """A connection for relay"""
//    interface Connection {
//      """Identifies the total count of items in the connection."""
//      totalCount: Int
//
//      """Information to aid in pagination."""
//      pageInfo: PageInfo!
//
//      """A list of edges."""
//      edges: [Edge]
//    }
//
//    """An edge in a connection."""
//    interface Edge {
//      """A cursor for use in pagination."""
//      cursor: String
//    }
//
//    input IDWhereOperator {
//      type: IDWhereOperatorType!
//      value: [ID]!
//    }
//
//    enum IDWhereOperatorType {
//      EQ
//      NOT_EQ
//      IN
//      NOT_IN
//    }
//
//    """An object with an ID."""
//    interface Node {
//      """ID of the object."""
//      id: ID!
//    }
//
//    enum OrderDirection {
//      ASC
//      DESC
//    }
//
//    """Information about pagination in a connection."""
//    type PageInfo {
//      """When paginating backwards, the cursor to continue."""
//      startCursor: String
//
//      """When paginating forwards, the cursor to continue."""
//      endCursor: String
//
//      """When paginating forwards, are there more items?"""
//      hasNextPage: Boolean
//
//      """When paginating backwards, are there more items?"""
//      hasPreviousPage: Boolean
//    }
//
//    type Query
//
//    type Test implements Node {
//      id: ID
//    }
//
//    type Test2 {
//      tests(orderBy: [TestOrder], where: TestWhere, before: String, after: String, first: Int, last: Int): TestConnection
//    }
//
//    """The connection type for Test"""
//    type TestConnection implements Connection {
//      """Identifies the total count of Test items in the connection."""
//      totalCount: Int
//
//      """A list of TestEdge."""
//      edges: [TestEdge]
//
//      """Information to aid in pagination."""
//      pageInfo: PageInfo!
//    }
//
//    """An edge in a TestConnection."""
//    type TestEdge implements Edge {
//      """The item at the end of the edge."""
//      node: Test
//
//      """A cursor for use in pagination."""
//      cursor: String
//    }
//
//    input TestOrder {
//      sort: TestSort
//      direction: OrderDirection
//    }
//
//    enum TestSort {
//      ID
//    }
//
//    input TestWhere {
//      id: [IDWhereOperator]
//    }

License

MIT.

0.7.20

12 days ago

0.7.19

19 days ago

0.7.18

26 days ago

0.7.17

1 month ago

0.7.11

2 months ago

0.7.10

3 months ago

0.7.13

2 months ago

0.7.12

2 months ago

0.7.15

1 month ago

0.7.14

2 months ago

0.7.16

1 month ago

0.7.9

3 months ago

0.7.8

3 months ago

0.7.2

5 months ago

0.7.1

5 months ago

0.7.4

4 months ago

0.7.3

4 months ago

0.7.0

5 months ago

0.6.43

6 months ago

0.6.42

6 months ago

0.6.45

5 months ago

0.6.44

5 months ago

0.7.6

4 months ago

0.7.5

4 months ago

0.7.7

3 months ago

0.6.41

6 months ago

0.6.40

6 months ago

0.6.39

6 months ago

0.6.38

7 months ago

0.6.37

7 months ago

0.6.36

7 months ago

0.6.34

8 months ago

0.6.35

7 months ago

0.6.33

8 months ago

0.6.32

8 months ago

0.6.31

8 months ago

0.6.30

9 months ago

0.6.29

9 months ago

0.6.28

9 months ago

0.6.27

9 months ago

0.6.26

10 months ago

0.6.25

10 months ago

0.6.24

10 months ago

0.6.23

10 months ago

0.6.22

10 months ago

0.6.21

11 months ago

0.6.20

11 months ago

0.6.19

11 months ago

0.6.18

11 months ago

0.6.17

12 months ago

0.6.16

12 months ago

0.6.15

12 months ago

0.6.14

1 year ago

0.6.13

1 year ago

0.6.10

1 year ago

0.6.12

1 year ago

0.6.11

1 year ago

0.6.9

1 year ago

0.6.8

1 year ago

0.6.7

1 year ago

0.6.6

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.32

1 year ago

0.5.33

1 year ago

0.5.31

1 year ago

0.5.30

1 year ago

0.5.29

1 year ago

0.5.28

1 year ago

0.5.27

1 year ago

0.5.26

2 years ago

0.5.25

2 years ago

0.5.24

2 years ago

0.5.23

2 years ago

0.5.22

2 years ago

0.5.21

2 years ago

0.5.20

2 years ago

0.5.19

2 years ago

0.5.18

2 years ago

0.5.17

2 years ago

0.5.16

2 years ago

0.5.15

2 years ago

0.5.14

2 years ago

0.5.13

2 years ago

0.5.12

2 years ago

0.5.10

2 years ago

0.5.11

2 years ago

0.5.9

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.0

2 years ago

0.5.1

2 years ago

0.4.0

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.1.40

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.39

2 years ago

0.1.38

2 years ago

0.1.37

3 years ago

0.1.36

3 years ago

0.1.35

3 years ago

0.1.34

3 years ago

0.1.33

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.29

3 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago