4 questions
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";
...
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 ...
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": "...
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 = ...