File tree Expand file tree Collapse file tree 1 file changed +24
-22
lines changed Expand file tree Collapse file tree 1 file changed +24
-22
lines changed Original file line number Diff line number Diff line change @@ -20,33 +20,35 @@ import type {
20
20
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
21
21
* whose return type is a connection type with forward pagination.
22
22
*/
23
- export const forwardConnectionArgs : GraphQLFieldConfigArgumentMap = {
24
- after : {
25
- type : GraphQLString ,
26
- description :
27
- 'Returns the items in the list that come after the specified cursor.' ,
28
- } ,
29
- first : {
30
- type : GraphQLInt ,
31
- description : 'Returns the first n items from the list.' ,
32
- } ,
33
- } ;
23
+ export const forwardConnectionArgs : GraphQLFieldConfigArgumentMap =
24
+ Object . freeze ( {
25
+ after : {
26
+ type : GraphQLString ,
27
+ description :
28
+ 'Returns the items in the list that come after the specified cursor.' ,
29
+ } ,
30
+ first : {
31
+ type : GraphQLInt ,
32
+ description : 'Returns the first n items from the list.' ,
33
+ } ,
34
+ } ) ;
34
35
35
36
/**
36
37
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
37
38
* whose return type is a connection type with backward pagination.
38
39
*/
39
- export const backwardConnectionArgs : GraphQLFieldConfigArgumentMap = {
40
- before : {
41
- type : GraphQLString ,
42
- description :
43
- 'Returns the items in the list that come before the specified cursor.' ,
44
- } ,
45
- last : {
46
- type : GraphQLInt ,
47
- description : 'Returns the last n items from the list.' ,
48
- } ,
49
- } ;
40
+ export const backwardConnectionArgs : GraphQLFieldConfigArgumentMap =
41
+ Object . freeze ( {
42
+ before : {
43
+ type : GraphQLString ,
44
+ description :
45
+ 'Returns the items in the list that come before the specified cursor.' ,
46
+ } ,
47
+ last : {
48
+ type : GraphQLInt ,
49
+ description : 'Returns the last n items from the list.' ,
50
+ } ,
51
+ } ) ;
50
52
51
53
/**
52
54
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
You can’t perform that action at this time.
0 commit comments