Giter Club home page Giter Club logo

Comments (4)

mathroc avatar mathroc commented on July 19, 2024 1

okay, I don’t now enough about the plugins internal so it’s a bit unclear at the moment, I guess it will need some documentation / examples once it’s stable

from graphile-engine.

benjie avatar benjie commented on July 19, 2024

I did add it there:

https://github.com/graphile/graphile-build/blob/99e845a6100f6e1697dfaff8f50f0caa91daef61/packages/graphile-build-pg/src/plugins/PgOrderAllColumnsPlugin.js#L24

Does it need additional context?

from graphile-engine.

mathroc avatar mathroc commented on July 19, 2024

my bad, I missed it

and got it working with this filter : if (isPgRowSortEnum && table && table.kind === "class") { // order by (same as in the plugin). I wonder if that’s the right way to filter it though. if the filter is updated in the plugin I’ll have to find about it and update it. also, even if I know it will filter correctly for the plugin I’m targeting, it could also filter in another plugin that I might not want to filter on the same conditions. maybe we should add the plugin name in the context? that would be much easier

from graphile-engine.

benjie avatar benjie commented on July 19, 2024

I’d rather we didn’t factor in the plugin name - that’s an implementation detail and we should be able to split, merge and rename plugins without affecting the output. The isPgRowSortEnum should be sufficient; if you added another plugin to re-add that column either it should ignore pgRowFilter or it should add extra Context so your pgRowFilter can be tweaked to differentiate.

from graphile-engine.

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.