Skip to content

Commit

Permalink
Remove oneOf Directive
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoiner committed Feb 13, 2025
1 parent ab07417 commit 7c707d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
1 change: 0 additions & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func New(settings config.Settings, logger *zerolog.Logger) (*App, error) {
cfg.Directives.RequiresOneOfPrivilege = auth.OneOfPrivilegeCheck
cfg.Directives.IsSignal = noOp
cfg.Directives.HasAggregation = noOp
cfg.Directives.OneOf = noOp

server := handler.NewDefaultServer(graph.NewExecutableSchema(cfg))

Check failure on line 59 in internal/app/app.go

View workflow job for this annotation

GitHub Actions / lint

SA1019: handler.NewDefaultServer is deprecated: This was and is just an example. (staticcheck)
errLogger := logger.With().Str("component", "gql").Logger()
Expand Down
16 changes: 5 additions & 11 deletions internal/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions schema/base.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ just like the blockchain, and in UTC.
"""
scalar Time

"""
A 20-byte Ethereum address, encoded as a checksummed hex string with 0x prefix.
"""
scalar Address

directive @goField(
forceResolver: Boolean
name: String
Expand Down
10 changes: 0 additions & 10 deletions schema/schema.graphqls

This file was deleted.

0 comments on commit 7c707d1

Please sign in to comment.