Categories
Development

Mongoose and GraphQL queries

Here I have a mongoose Schema

name : String,
class : String,
skills : [{ skill_name : String }]

How I do make it on GraphQL inputs ? so I can save them to mongodb

Like

input Students{
 name :String!
  class :String!
skills : "how to do it in here"?
}

Leave a Reply

Your email address will not be published. Required fields are marked *