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

codegen: add the nested field selection to the command context #177

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

hgiasac
Copy link
Collaborator

@hgiasac hgiasac commented Jan 6, 2025

Add the nested field selection to the command context so developers can use it in the custom logic functions.

selection := utils.CommandSelectionFieldFromContext(ctx)

Copy link

github-actions bot commented Jan 6, 2025

Code Coverage

Package Line Rate Health
github.com/hasura/ndc-sdk-go/cmd/hasura-ndc-go/command/internal 83%
github.com/hasura/ndc-sdk-go/cmd/hasura-ndc-go/command 34%
github.com/hasura/ndc-sdk-go/cmd/hasura-ndc-go/version 43%
github.com/hasura/ndc-sdk-go/connector 54%
github.com/hasura/ndc-sdk-go/example/reference 57%
github.com/hasura/ndc-sdk-go/ndctest 51%
github.com/hasura/ndc-sdk-go/scalar 97%
github.com/hasura/ndc-sdk-go/schema 50%
github.com/hasura/ndc-sdk-go/utils 35%
Summary 53% (6688 / 12667)

Minimum allowed line rate is 40%

@hgiasac hgiasac merged commit 6486aa7 into main Jan 6, 2025
2 checks passed
@hgiasac hgiasac deleted the feat/add-selection-to-command-context branch January 6, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant