Skip to content

Commit

Permalink
feat(gql-parsing): Update gqlparser from 2.5.21 to 2.5.22 to support … (
Browse files Browse the repository at this point in the history
#173)

…newer graphql spec

This should resolve issue #172
  • Loading branch information
CodingContraption authored Jan 30, 2025
1 parent 18010b7 commit b5dde9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GraphQL Protect is dead-simple yet highly customizable security proxy compatible
![GitHub Release](https://img.shields.io/github/v/release/ldebruijn/graphql-protect)


_This is repository inspired by the great work of the Javascript [GraphQL Armor](https://github.com/Escape-Technologies/graphql-armor) middleware._
_This repository is inspired by the great work of the Javascript [GraphQL Armor](https://github.com/Escape-Technologies/graphql-armor) middleware._

<!-- TOC -->

Expand All @@ -30,7 +30,14 @@ _This is repository inspired by the great work of the Javascript [GraphQL Armor]

Curious why you need these features? Check out this [Excellent talk on GraphQL security](https://www.youtube.com/watch?v=hyB2UKsEkqA&list=PLP1igyLx8foE9SlDLI1Vtlshcon5r1jMJ) on YouTube.

## Nice to know
## Known limitations

### Graphql Spec Support
GraphQL Protect makes use of [gqlparser](https://github.com/vektah/gqlparser) to parse and validate GraphQL schemas & GraphQL requests. Gqlparser's spec support is [October 2021](https://spec.graphql.org/October2021/) and [select portions of the Draft](https://spec.graphql.org/draft/). gqlparser uses [graphql-js](https://github.com/graphql/graphql-js) as a reference implementation, resulting a similar level of graphql spec support.

If experience any issues related to spec support, or you want to verify the (draft spec) feature you want to use is supported, it's best to inspect the gqlparser library directly for your use case.

### Response encoding
Currently, handling response encoding from the upstream is not supported, we're open for contributions : )


Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/jedib0t/go-pretty/v6 v6.6.5
github.com/prometheus/client_golang v1.20.5
github.com/stretchr/testify v1.10.0
github.com/vektah/gqlparser/v2 v2.5.21
github.com/vektah/gqlparser/v2 v2.5.22
go.opentelemetry.io/contrib/exporters/autoexport v0.59.0
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.59.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/vektah/gqlparser/v2 v2.5.21 h1:Zw1rG2dr1pRR4wqwbVq4d6+xk2f4ut/yo+hwr4QjE08=
github.com/vektah/gqlparser/v2 v2.5.21/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
github.com/vektah/gqlparser/v2 v2.5.22 h1:yaaeJ0fu+nv1vUMW0Hl+aS1eiv1vMfapBNjpffAda1I=
github.com/vektah/gqlparser/v2 v2.5.22/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
Expand Down

0 comments on commit b5dde9f

Please sign in to comment.