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 graphqlobjecttypes , not basic? how can define in graphql js number or string?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -