How to use the GraphQLString function from graphql

Find comprehensive JavaScript graphql.GraphQLString code examples handpicked from public code repositorys.

16
17
18
19
20
21
22
23
24
25
case 'tinyint':
  return graphql.GraphQLBoolean
case 'smallint':
  return graphql.GraphQLInt
case 'decimal':
  return graphql.GraphQLString
case 'bigint':
  return graphql.GraphQLString
case 'int2':
  return graphql.GraphQLInt
fork icon96
star icon963
watch icon17

+ 15 other calls in file

42
43
44
45
46
47
48
49
50
51
  description: 'Passed in HTML to query off of, can use this when you already have the HTMl and just want to query off of it.',
  type: graphql.GraphQLString,
},
headers: {
  description: 'Headers to be passed along the fetch request to the website',
  type: graphql.GraphQLString
},
wait: {
  description: 'This will wait for a certain amount of time in milliseconds, only works with passing URL.',
  type: graphql.GraphQLInt,
fork icon48
star icon635
watch icon13

7
8
9
10
11
12
13
14
15
16
  const args = { }
  const resourceConfig = jsonApi._resources[resource]
  Object.keys(resourceConfig.attributes).forEach(attribute => {
    args[attribute] = {
      description: 'Filter string',
      type: graphQl.GraphQLString
    }
  })
  return args
}
fork icon20
star icon52
watch icon4

208
209
210
211
212
213
214
215
216
217
    argPath = parameter['x-argPath'],
    paramSchema = parameter.schema;

if (isRootQuery || !argPath) {
        // this is a root operation or resolution path is not defined => parameter is required
        var type = _graphql.GraphQLString;
        if (parameterType) {
                type = computeType({ type: parameterType }, operationsDescriptions, swagger, idFormats, typesBag, newParentTypePath);
        }
        if ((paramIn === 'body' || paramIn === 'formData') && paramSchema) {
fork icon5
star icon7
watch icon3

870
871
872
873
874
875
876
877
878
879
case "tinyint":
    t = graphql.GraphQLBoolean;
    break;
case "varchar":
case "text":
    t = graphql.GraphQLString;
    break;
case "datetime":
    t = GraphQLDateTime;
    break;
fork icon3
star icon6
watch icon0

2
3
4
5
6
7
8
9
10
11
const TitleType = require('./title');

// Article, Media, etc
const BlockItem = new graphql.GraphQLInterfaceType({
        id: {
            type: new graphql.GraphQLString()
        },
        type: {
            type: new graphql.GraphQLObjectType(TitleType)
        },
fork icon2
star icon0
watch icon27

8
9
10
11
12
13
14
15
global.GraphqlUnionType = global.GraphQLUnionType = graphql.GraphQLUnionType;
global.GraphqlInterfaceType = global.GraphQLInterfaceType = graphql.GraphQLInterfaceType;
global.GraphqlEnumType = global.GraphQLEnumType = graphql.GraphQLEnumType;
global.GraphqlInt = global.GraphQLInt = graphql.GraphQLInt;
global.GraphqlFloat = global.GraphQLFloat = graphql.GraphQLFloat;
global.GraphqlString = global.GraphQLString = graphql.GraphQLString;
global.GraphqlBoolean = global.GraphQLBoolean = graphql.GraphQLBoolean;
global.GraphqlID = global.GraphQLID = graphql.GraphQLID;
fork icon0
star icon0
watch icon5