How to use the GraphQLID function from graphql

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

50
51
52
53
54
55
56
57
58
59
case 'time':
  return graphql.GraphQLString
case 'timestamp':
  return scalars.GraphQLDateTime
case 'uuid':
  return graphql.GraphQLID
case 'json':
  return GraphQLJSONObject
case 'jsonb':
  return GraphQLJSONObject
fork icon96
star icon963
watch icon17

73
74
75
76
77
78
79
80
81
82
} else {
  meta.type = sqlTypeToGraphQL(field.sqlType)
}
if (field.primaryKey) {
  meta.primaryKeyType = field.type
  meta.type = graphql.GraphQLID
} else if (field.foreignKey) {
  meta.type = graphql.GraphQLID
}
fields[field.camelcase] = meta
fork icon85
star icon888
watch icon16

+ 65 other calls in file

288
289
290
291
292
293
294
295
296
297
}
if (collection.primary === field.field) {
    if (!field.defaultValue && !field.special.includes('uuid') && action === 'create')
        type = new graphql_1.GraphQLNonNull(graphql_1.GraphQLID);
    else if (['create', 'update'].includes(action))
        type = graphql_1.GraphQLID;
    else
        type = new graphql_1.GraphQLNonNull(graphql_1.GraphQLID);
}
acc[field.field] = {
fork icon0
star icon0
watch icon1

+ 42 other calls in file

10
11
12
13
14
15
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