anvilco/spectaql

SDL Directive not respecting `undocumented: true` on ENUM_VALUE

Closed this issue · 4 comments

Following the examples in the readme and documentation, I attempted to add the directive
@spectaql(options: [{ key: "undocumented", value: "true" }])
to an ENUM_VALUE that we use internally for testing but don't want in our public documentation

We found that the above directive does work on the whole ENUM type, but we are unable to have it apply to a specific ENUM_VALUE

I'm not following the code super well, but I'm wondering if this is a quick fix to add ENUM_VALUE logic to spectaql/src/spectaql/augmenters.js func hideFields on line 154

This should be fixed in the latest main, as well as in spectaql@2.2.0-beta.0.

There is a dependency with a busted semver that I'm waiting for them to resolve before publishing completely as 2.2.0.

Can you confirm this works?

@SympleSynz

Thank you very much for the fix. I'll pull it in and give it a test this coming week

@newhouse Confirmed that the above version worked and removed the ENUM_VALUE we didn't want published