Giter VIP home page Giter VIP logo

Comments (4)

maticzav avatar maticzav commented on May 28, 2024

hey @carstenbaumhoegger!

thank you for such nice feedback! I have unfortunately not. I was thinking about it but couldn't find a meaningful API solution.

This package is based on forwardTo property which is exposed by graphql-binding as well as prisma-binding. It's extremely easy to use this one as well. You can read more about it here https://github.com/prismagraphql/prisma-binding/blob/master/README.md#forwardto .

I would love to improve this package; therefore, if you have any idea of how we could make your case work with a general API I would be more than happy to hear it!

I hope this helps you solve your case. πŸ™‚

from graphql-middleware-forward-binding.

maticzav avatar maticzav commented on May 28, 2024

@carstenbaumhoegger just added support for this, check out 30bfb4a! πŸŽ‰

from graphql-middleware-forward-binding.

carstenbaumhoegger avatar carstenbaumhoegger commented on May 28, 2024

hey @maticzav !
Sorry for my late response.

The changes you made are great! πŸŽ‰

I would have another usage for this selective forwarding but with some kind of "blacklisting". So instead of providing all queries and mutations that should be forwarded, I'd like to provide all, that should NOT be forwarded and handled by graphql-yoga πŸ˜„

Do you know a solution for this problem?

Thanks in advance
Carsten

from graphql-middleware-forward-binding.

maticzav avatar maticzav commented on May 28, 2024

Hey man, sure thing! I am glad you like it 🍻 I think the easiest way to achieve blacklisting like feature is by copying Query and Mutation types and just removing the fields you don’t need.

I also think that we don't need explicit functionality for blacklisting because of this since it wouldn't make sense, at least that's what I think πŸ˜„

You probably know how the rest of the implementation should work πŸŽ‰

from graphql-middleware-forward-binding.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.