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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -