Skip to content

shivshankar3578/ts-mongo-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples

query GetRecipes {
  recipes {
    _id
    title
    author {
      email
    }
    ratings {
      value
    }
  }
}
query GetRecipe {
  # fill with correct ObjectId
  recipe(recipeId: "5c97eecbf49a072a00048ac5") {
    _id
    title
    ratings {
      value
      user {
        nickname
      }
      date
    }
    author {
      _id
      nickname
      email
    }
  }
}
mutation AddRecipe {
  addRecipe(recipe: { title: "New Recipe" }) {
    _id
    ratings {
      value
    }
    author {
      nickname
    }
  }
}
mutation RateRecipe {
  # fill with correct ObjectId
  rate(rate: { recipeId: "5c97eecbf49a072a00048ac5", value: 4 }) {
    _id
    ratings {
      value
      user {
        email
      }
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published