Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for skipping fields and fields prefixed with __ #253

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

craigrbarnes
Copy link

@craigrbarnes craigrbarnes commented Jan 30, 2024

New Features

Adds two members to Guppy's configuration:

  • ignoredFields - a comma-separated string of field names. If set, it will remove any field matching the string. Note that any nested fields with the same name will also be ignored. This was added to prevent guppy from throwing errors when guppy processes a field name it cannot handle: like ("@Version"). This can also be set with the environment variable
    IGNORED_FIELDS

  • doubleUnderscorePrefix: will prepend any field names with the prefix __ with the value of doubleUnderscorePrefix. For example __manifest if doubleUnderscorePrefix = x__ will change the field name to x__manifest. This was added as graphQl prohibits field names with a prefix of __. This is also set with the environment variable DOUBLE_UNDERSCORE

Breaking Changes

Bug Fixes

Improvements

Dependency updates

Deployment changes

@craigrbarnes craigrbarnes added the WIP Work in Progress label Jan 30, 2024
@craigrbarnes craigrbarnes removed the WIP Work in Progress label Jan 30, 2024
@craigrbarnes craigrbarnes added the WIP Work in Progress label Feb 2, 2024
@craigrbarnes craigrbarnes removed the WIP Work in Progress label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant