-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgraphql.nim
90 lines (81 loc) · 1.6 KB
/
graphql.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# nim-graphql
# Copyright (c) 2021 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
# at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.
import
faststreams/inputs,
graphql/[parser, api],
graphql/builtin/json_respstream as jrs
export
# faststreams inputs
inputs,
# query_parser, schema_parser
# and full_parser
parser,
# ast helper types
api.ast_helper,
# exported types
api.`$`,
api.ErrorDesc,
api.ErrorLevel,
api.Name,
api.Result,
api.GraphqlRef,
api.NodeResult,
api.RespResult,
api.GraphqlResult,
api.GraphqlError,
api.NameCounter,
api.InstrumentFlag,
api.InstrumentResult,
api.InstrumentObj,
api.InstrumentRef,
api.InstrumentProc,
api.ExecRef,
api.FieldSet,
api.FieldRef,
# exported stew/results
api.isErr,
api.isOk,
api.err,
api.ok,
api.error,
api.get,
# graphql api
api.init,
api.new,
api.customScalar,
api.customCoercion,
api.addVar,
api.parseVar,
api.parseVars,
api.addResolvers,
api.createName,
api.executeRequest,
api.validate,
api.parseSchema,
api.parseSchemaFromFile,
api.parseSchemas,
api.parseQuery,
api.parseQueryFromFile,
api.purgeQueries,
api.purgeSchema,
api.getNameCounter,
api.purgeNames,
api.treeRepr,
api.addInstrument,
# graphql response
api.respMap,
api.respList,
api.respNull,
api.resp,
# builtin json response stream
jrs.new,
jrs.getString,
jrs.getBytes,
jrs.JsonRespStream,
jrs