Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
520 views

How to Integrate the latest graphql-shield with my @apollo/server

import * as dotenv from "dotenv"; import mongoose from "mongoose"; import typeDefs from "./graphql/typeDefs.js"; import resolvers from "./graphql/resolvers.js"; ...
WildThing's user avatar
  • 1,255
2 votes
1 answer
306 views

Use Rover with graphql-shield

I'm using graphql-shield on a subgraph and rover-cli to generate the schema. I've set the fallback rule to deny everything as I don't want anything to be accessible by default. But now rover-cli fails ...
LilTits's user avatar
  • 23
2 votes
1 answer
470 views

Graphql-Shield hijacks errors

In the resolver throw new createError.BadRequest("bad input") error is hijacked by Graphql-shield and shown as { "errors": [ { "message": "...
Marcus's user avatar
  • 9,412
2 votes
3 answers
1k views

Apollo Server Federation with graphql-shield

I'm using graphql-shield to protect a subgraph. const isAuthenticated = rule({ cache: 'contextual' })(async (parent, args, ctx, info) => { return ctx.isAuthenticated }) const permissions = ...
capiono's user avatar
  • 2,987