javascript - How to define in GraphQL js that something is number or string -
i trying declare string or number
const colortype = new graphqluniontype({ name: 'color', types: [ graphqlstring, graphqlint ] });
but seems graphqluniontype
works graphqlobjecttype
s , not basic? how can define in graphql js number or string?
Comments
Post a Comment