Code Monkey home page Code Monkey logo

Comments (6)

brad-decker avatar brad-decker commented on July 22, 2024

@mickhansen I would 👍 providing both options - Its pretty nice to have the exclude option if there's only one field you want to define yourself.

from graphql-sequelize.

mickhansen avatar mickhansen commented on July 22, 2024

@brad-decker We already have exclude, this issue is to add include also, not to remove exclude (i realize the wording might be ambigious though).

from graphql-sequelize.

aweary avatar aweary commented on July 22, 2024

Just so I'm clear, you mean to have include be an option where, when provided, graphql-sequelize only looks at those fields, but when it's not provided, it defaults to the current behavior of parsing all the fields (minus any excludes), correct?

from graphql-sequelize.

mickhansen avatar mickhansen commented on July 22, 2024

@aweary Correct. include might not be descriptive enough, perhaps only?

from graphql-sequelize.

aweary avatar aweary commented on July 22, 2024

Yeah my first thought would be that include would be including additional fields or something. only seems semantically correct. I can give this one a try later today.

from graphql-sequelize.

mickhansen avatar mickhansen commented on July 22, 2024

Yeah that is definitely one way to read it, it's definitely too ambigious then :)

from graphql-sequelize.

Related Issues (20)

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.