0.7.20 • Published 12 days ago

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

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

@anchan828/gen-graphql-order-schema

Description

Generate order schema by directive

Quick Start

import { genOrderTypes } from "@anchan828/gen-graphql-order-schema";
import { buildASTSchema, printSchema } from "graphql";

const schema = `

type Test {
  id: ID
}

type Query {
  tests: [Test] @orderBy
}

`;

printSchema(buildASTSchema(genOrderTypes(schema)));
//=>  enum OrderDirection {
//      ASC
//      DESC
//    }
//
//    type Query {
//      tests(orderBy: [TestOrder]): [Test]
//    }
//
//    type Test {
//      id: ID
//    }
//
//    type TestOrder {
//      sort: TestSort
//      direction: OrderDirection
//    }
//
//    enum TestSort {
//      ID
//    }

Options

TODO

Supoprted Types

For now, supported types are Basic Types (String, Int, Float, Boolean, ID), and Enum

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

2 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

9 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.0

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.9

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

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.0

2 years ago

0.3.1

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.34

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.29

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.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago