这是indexloc提供的服务,不要输入任何密码
Skip to content

Skip field with hyphen graphql tag #31

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

Merged
merged 2 commits into from
Mar 15, 2022
Merged

Conversation

hgiasac
Copy link

@hgiasac hgiasac commented Mar 15, 2022

Skip GraphQL field with hyphen tag. Inspired from encoding/json library.

struct {
    Viewer struct {
	ID         interface{} `graphql:"-"`
	Login      string
	CreatedAt  time.Time `graphql:"-"`
	DatabaseID int
   }
}

// Output
// {viewer{login,databaseId}}

@hgiasac hgiasac merged commit 281df85 into master Mar 15, 2022
@hgiasac hgiasac deleted the feature/add-skip-hyphen-tag branch March 15, 2022 07:29
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