From 0cb52feaa2fa22706ae3fbfb2499989d9d8670ed Mon Sep 17 00:00:00 2001 From: Lucas Teske Date: Tue, 11 Jun 2019 15:59:08 -0300 Subject: [PATCH] Upstream update to quan-to --- .circleci/config.yml | 2 +- CONTRIBUTING.md | 6 +++--- README.md | 14 +++++++------- abstract_test.go | 8 ++++---- benchutil/list_schema.go | 2 +- benchutil/wide_schema.go | 2 +- definition.go | 2 +- definition_test.go | 4 ++-- directives_test.go | 6 +++--- enum_type_test.go | 8 ++++---- examples/concurrent-resolvers/main.go | 2 +- examples/context/main.go | 2 +- examples/crud/main.go | 2 +- examples/custom-scalar-type/main.go | 4 ++-- examples/hello-world/main.go | 2 +- examples/http/main.go | 2 +- examples/httpdynamic/main.go | 2 +- examples/modify-context/main.go | 2 +- examples/star-wars/main.go | 4 ++-- examples/todo/main.go | 2 +- executor.go | 4 ++-- executor_resolve_test.go | 4 ++-- executor_schema_test.go | 4 ++-- executor_test.go | 8 ++++---- extensions.go | 2 +- extensions_test.go | 6 +++--- go.mod | 4 +++- gqlerrors/error.go | 6 +++--- gqlerrors/formatted.go | 2 +- gqlerrors/located.go | 2 +- gqlerrors/syntax.go | 6 +++--- graphql.go | 6 +++--- graphql_bench_test.go | 4 ++-- graphql_test.go | 4 ++-- introspection.go | 4 ++-- introspection_test.go | 8 ++++---- language/ast/arguments.go | 2 +- language/ast/definitions.go | 2 +- language/ast/directives.go | 2 +- language/ast/document.go | 2 +- language/ast/location.go | 2 +- language/ast/name.go | 2 +- language/ast/selections.go | 2 +- language/ast/type_definitions.go | 2 +- language/ast/types.go | 2 +- language/ast/values.go | 2 +- language/lexer/lexer.go | 4 ++-- language/lexer/lexer_test.go | 2 +- language/location/location.go | 2 +- language/parser/parser.go | 8 ++++---- language/parser/parser_test.go | 10 +++++----- language/parser/schema_parser_test.go | 8 ++++---- language/printer/printer.go | 4 ++-- language/printer/printer_test.go | 8 ++++---- language/printer/schema_printer_test.go | 6 +++--- language/typeInfo/type_info.go | 2 +- language/visitor/visitor.go | 4 ++-- language/visitor/visitor_test.go | 14 +++++++------- lists_test.go | 8 ++++---- located.go | 4 ++-- mutations_test.go | 8 ++++---- nonnull_test.go | 8 ++++---- race_test.go | 2 +- rules.go | 10 +++++----- rules_arguments_of_correct_type_test.go | 6 +++--- rules_default_values_of_correct_type_test.go | 6 +++--- rules_fields_on_correct_type_test.go | 6 +++--- rules_fragments_on_composite_types_test.go | 6 +++--- rules_known_argument_names_test.go | 6 +++--- rules_known_directives_rule_test.go | 6 +++--- rules_known_fragment_names_test.go | 6 +++--- rules_known_type_names_test.go | 6 +++--- rules_lone_anonymous_operation_rule_test.go | 6 +++--- rules_no_fragment_cycles_test.go | 6 +++--- rules_no_undefined_variables_test.go | 6 +++--- rules_no_unused_fragments_test.go | 6 +++--- rules_no_unused_variables_test.go | 6 +++--- rules_overlapping_fields_can_be_merged.go | 8 ++++---- rules_overlapping_fields_can_be_merged_test.go | 6 +++--- rules_possible_fragment_spreads_test.go | 6 +++--- rules_provided_non_null_arguments_test.go | 6 +++--- rules_scalar_leafs_test.go | 6 +++--- rules_unique_argument_names_test.go | 6 +++--- rules_unique_fragment_names_test.go | 6 +++--- rules_unique_input_field_names_test.go | 6 +++--- rules_unique_operation_names_test.go | 6 +++--- rules_unique_variable_names_test.go | 6 +++--- rules_variables_are_input_types_test.go | 6 +++--- rules_variables_in_allowed_position_test.go | 6 +++--- scalars.go | 2 +- scalars_parse_test.go | 4 ++-- scalars_serialization_test.go | 2 +- testutil/rules_test_harness.go | 10 +++++----- testutil/testutil.go | 8 ++++---- testutil/testutil_test.go | 2 +- type_info.go | 4 ++-- types.go | 2 +- union_interface_test.go | 4 ++-- util_test.go | 4 ++-- validation_test.go | 4 ++-- validator.go | 8 ++++---- validator_test.go | 14 +++++++------- values.go | 8 ++++---- variables_test.go | 10 +++++----- 104 files changed, 262 insertions(+), 260 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 608cb893..1875071f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ test_with_go_modules: &test_with_go_modules - run: go vet ./... test_without_go_modules: &test_without_go_modules - working_directory: /go/src/github.com/graphql-go/graphql + working_directory: /go/src/github.com/quan-to/graphql steps: - checkout - run: go get -v -t -d ./... diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c9d4e59d..5316cea5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ This document is based on the [Node.js contribution guidelines](https://github.c ## Chat room -[![Join the chat at https://gitter.im/graphql-go/graphql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/graphql-go/graphql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Join the chat at https://gitter.im/quan-to/graphql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/quan-to/graphql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Feel free to participate in the chat room for informal discussions and queries. @@ -55,8 +55,8 @@ The basics are as follows: 2. `go get` the upstream repo and set it up as the `upstream` remote and your own repo as the `origin` remote: ```bash -$ go get github.com/graphql-go/graphql -$ cd $GOPATH/src/github.com/graphql-go/graphql +$ go get github.com/quan-to/graphql +$ cd $GOPATH/src/github.com/quan-to/graphql $ git remote rename origin upstream $ git remote add origin git@github.com/YOUR_GITHUB_NAME/graphql ``` diff --git a/README.md b/README.md index 2f8109a1..9192eedf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# graphql [![CircleCI](https://circleci.com/gh/graphql-go/graphql/tree/master.svg?style=svg)](https://circleci.com/gh/graphql-go/graphql/tree/master) [![GoDoc](https://godoc.org/graphql.co/graphql?status.svg)](https://godoc.org/github.com/graphql-go/graphql) [![Coverage Status](https://coveralls.io/repos/github/graphql-go/graphql/badge.svg?branch=master)](https://coveralls.io/github/graphql-go/graphql?branch=master) [![Join the chat at https://gitter.im/graphql-go/graphql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/graphql-go/graphql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +# graphql [![CircleCI](https://circleci.com/gh/quan-to/graphql/tree/master.svg?style=svg)](https://circleci.com/gh/quan-to/graphql/tree/master) [![GoDoc](https://godoc.org/graphql.co/graphql?status.svg)](https://godoc.org/github.com/quan-to/graphql) [![Coverage Status](https://coveralls.io/repos/github/quan-to/graphql/badge.svg?branch=master)](https://coveralls.io/github/quan-to/graphql?branch=master) [![Join the chat at https://gitter.im/quan-to/graphql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/quan-to/graphql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) An implementation of GraphQL in Go. Follows the official reference implementation [`graphql-js`](https://github.com/graphql/graphql-js). @@ -6,13 +6,13 @@ Supports: queries, mutations & subscriptions. ### Documentation -godoc: https://godoc.org/github.com/graphql-go/graphql +godoc: https://godoc.org/github.com/quan-to/graphql ### Getting Started To install the library, run: ```bash -go get github.com/graphql-go/graphql +go get github.com/quan-to/graphql ``` The following is a simple example which defines a schema with a single `hello` string-type field and a `Resolve` method which returns the string `world`. A GraphQL query is performed against this schema with the resulting output printed in JSON format. @@ -25,7 +25,7 @@ import ( "fmt" "log" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) func main() { @@ -60,13 +60,13 @@ func main() { fmt.Printf("%s \n", rJSON) // {“data”:{“hello”:”world”}} } ``` -For more complex examples, refer to the [examples/](https://github.com/graphql-go/graphql/tree/master/examples/) directory and [graphql_test.go](https://github.com/graphql-go/graphql/blob/master/graphql_test.go). +For more complex examples, refer to the [examples/](https://github.com/quan-to/graphql/tree/master/examples/) directory and [graphql_test.go](https://github.com/quan-to/graphql/blob/master/graphql_test.go). ### Third Party Libraries | Name | Author | Description | |:-------------:|:-------------:|:------------:| -| [graphql-go-handler](https://github.com/graphql-go/graphql-go-handler) | [Hafiz Ismail](https://github.com/sogko) | Middleware to handle GraphQL queries through HTTP requests. | -| [graphql-relay-go](https://github.com/graphql-go/graphql-relay-go) | [Hafiz Ismail](https://github.com/sogko) | Lib to construct a graphql-go server supporting react-relay. | +| [graphql-go-handler](https://github.com/quan-to/graphql-go-handler) | [Hafiz Ismail](https://github.com/sogko) | Middleware to handle GraphQL queries through HTTP requests. | +| [graphql-relay-go](https://github.com/quan-to/graphql-relay-go) | [Hafiz Ismail](https://github.com/sogko) | Lib to construct a graphql-go server supporting react-relay. | | [golang-relay-starter-kit](https://github.com/sogko/golang-relay-starter-kit) | [Hafiz Ismail](https://github.com/sogko) | Barebones starting point for a Relay application with Golang GraphQL server. | | [dataloader](https://github.com/nicksrandall/dataloader) | [Nick Randall](https://github.com/nicksrandall) | [DataLoader](https://github.com/facebook/dataloader) implementation in Go. | diff --git a/abstract_test.go b/abstract_test.go index 0a2da642..5924e540 100644 --- a/abstract_test.go +++ b/abstract_test.go @@ -4,10 +4,10 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) type testDog struct { diff --git a/benchutil/list_schema.go b/benchutil/list_schema.go index 196a7f5c..adc79a3f 100644 --- a/benchutil/list_schema.go +++ b/benchutil/list_schema.go @@ -3,7 +3,7 @@ package benchutil import ( "fmt" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type color struct { diff --git a/benchutil/wide_schema.go b/benchutil/wide_schema.go index 1177fce6..b016eef6 100644 --- a/benchutil/wide_schema.go +++ b/benchutil/wide_schema.go @@ -3,7 +3,7 @@ package benchutil import ( "fmt" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) func WideSchemaWithXFieldsAndYItems(x int, y int) graphql.Schema { diff --git a/definition.go b/definition.go index 4b132991..667dba4b 100644 --- a/definition.go +++ b/definition.go @@ -6,7 +6,7 @@ import ( "reflect" "regexp" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql/language/ast" ) // Type interface for all of the possible kinds of GraphQL types diff --git a/definition_test.go b/definition_test.go index 12824f21..856b8f65 100644 --- a/definition_test.go +++ b/definition_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" ) var blogImage = graphql.NewObject(graphql.ObjectConfig{ diff --git a/directives_test.go b/directives_test.go index 30b3028a..cd677a30 100644 --- a/directives_test.go +++ b/directives_test.go @@ -4,9 +4,9 @@ import ( "errors" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) var directivesTestSchema, _ = graphql.NewSchema(graphql.SchemaConfig{ diff --git a/enum_type_test.go b/enum_type_test.go index 33ad67a3..356e8bd9 100644 --- a/enum_type_test.go +++ b/enum_type_test.go @@ -4,10 +4,10 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) var enumTypeTestColorType = graphql.NewEnum(graphql.EnumConfig{ diff --git a/examples/concurrent-resolvers/main.go b/examples/concurrent-resolvers/main.go index 08a1c9ef..3bca35a4 100644 --- a/examples/concurrent-resolvers/main.go +++ b/examples/concurrent-resolvers/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type Foo struct { diff --git a/examples/context/main.go b/examples/context/main.go index 149a9291..a19b2158 100644 --- a/examples/context/main.go +++ b/examples/context/main.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) var Schema graphql.Schema diff --git a/examples/crud/main.go b/examples/crud/main.go index bdd83504..2787192b 100644 --- a/examples/crud/main.go +++ b/examples/crud/main.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type Product struct { diff --git a/examples/custom-scalar-type/main.go b/examples/custom-scalar-type/main.go index e7203a06..0b5ab738 100644 --- a/examples/custom-scalar-type/main.go +++ b/examples/custom-scalar-type/main.go @@ -5,8 +5,8 @@ import ( "fmt" "log" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/language/ast" ) type CustomID struct { diff --git a/examples/hello-world/main.go b/examples/hello-world/main.go index d014e942..f017674c 100644 --- a/examples/hello-world/main.go +++ b/examples/hello-world/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) func main() { diff --git a/examples/http/main.go b/examples/http/main.go index a1f2836e..ffaf4af1 100644 --- a/examples/http/main.go +++ b/examples/http/main.go @@ -6,7 +6,7 @@ import ( "io/ioutil" "net/http" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type user struct { diff --git a/examples/httpdynamic/main.go b/examples/httpdynamic/main.go index ff8abb89..7e927e9c 100644 --- a/examples/httpdynamic/main.go +++ b/examples/httpdynamic/main.go @@ -10,7 +10,7 @@ import ( "strconv" "syscall" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) /*****************************************************************************/ diff --git a/examples/modify-context/main.go b/examples/modify-context/main.go index 0432b3ba..e96d792c 100644 --- a/examples/modify-context/main.go +++ b/examples/modify-context/main.go @@ -6,7 +6,7 @@ import ( "fmt" "log" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type User struct { diff --git a/examples/star-wars/main.go b/examples/star-wars/main.go index ea178dea..4b68c203 100644 --- a/examples/star-wars/main.go +++ b/examples/star-wars/main.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" ) func main() { diff --git a/examples/todo/main.go b/examples/todo/main.go index b36b08d0..0297a113 100644 --- a/examples/todo/main.go +++ b/examples/todo/main.go @@ -7,7 +7,7 @@ import ( "net/http" "time" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type Todo struct { diff --git a/executor.go b/executor.go index d8477140..d8621511 100644 --- a/executor.go +++ b/executor.go @@ -7,8 +7,8 @@ import ( "reflect" "strings" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" ) type ExecuteParams struct { diff --git a/executor_resolve_test.go b/executor_resolve_test.go index 7430cd86..87e3ea0e 100644 --- a/executor_resolve_test.go +++ b/executor_resolve_test.go @@ -2,8 +2,8 @@ package graphql_test import ( "encoding/json" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" "reflect" "testing" ) diff --git a/executor_schema_test.go b/executor_schema_test.go index b39c4c3a..ba4a110d 100644 --- a/executor_schema_test.go +++ b/executor_schema_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" ) // TODO: have a separate package for other tests for eg `parser` diff --git a/executor_test.go b/executor_test.go index 856aadf3..7732a803 100644 --- a/executor_test.go +++ b/executor_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) func TestExecutesArbitraryCode(t *testing.T) { diff --git a/extensions.go b/extensions.go index 1c448fbf..642b4f04 100644 --- a/extensions.go +++ b/extensions.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/graphql-go/graphql/gqlerrors" + "github.com/quan-to/graphql/gqlerrors" ) type ( diff --git a/extensions_test.go b/extensions_test.go index db7551ec..8c4110f6 100644 --- a/extensions_test.go +++ b/extensions_test.go @@ -7,9 +7,9 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func tinit(t *testing.T) graphql.Schema { diff --git a/go.mod b/go.mod index 399b200d..0db17ffd 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ -module github.com/graphql-go/graphql +module github.com/quan-to/graphql + +go 1.12 diff --git a/gqlerrors/error.go b/gqlerrors/error.go index 569e752c..70c419c2 100644 --- a/gqlerrors/error.go +++ b/gqlerrors/error.go @@ -4,9 +4,9 @@ import ( "fmt" "reflect" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/language/source" ) type Error struct { diff --git a/gqlerrors/formatted.go b/gqlerrors/formatted.go index fb422b63..36f33544 100644 --- a/gqlerrors/formatted.go +++ b/gqlerrors/formatted.go @@ -3,7 +3,7 @@ package gqlerrors import ( "errors" - "github.com/graphql-go/graphql/language/location" + "github.com/quan-to/graphql/language/location" ) type ExtendedError interface { diff --git a/gqlerrors/located.go b/gqlerrors/located.go index b02fcd8a..892a2b98 100644 --- a/gqlerrors/located.go +++ b/gqlerrors/located.go @@ -2,7 +2,7 @@ package gqlerrors import ( "errors" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql/language/ast" ) // NewLocatedError creates a graphql.Error with location info diff --git a/gqlerrors/syntax.go b/gqlerrors/syntax.go index abad6ade..552b410d 100644 --- a/gqlerrors/syntax.go +++ b/gqlerrors/syntax.go @@ -5,9 +5,9 @@ import ( "regexp" "strings" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/language/source" ) func NewSyntaxError(s *source.Source, position int, description string) *Error { diff --git a/graphql.go b/graphql.go index c27a5dbc..2c802868 100644 --- a/graphql.go +++ b/graphql.go @@ -3,9 +3,9 @@ package graphql import ( "context" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/parser" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/parser" + "github.com/quan-to/graphql/language/source" ) type Params struct { diff --git a/graphql_bench_test.go b/graphql_bench_test.go index 5b135192..c8ce8a37 100644 --- a/graphql_bench_test.go +++ b/graphql_bench_test.go @@ -3,8 +3,8 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/benchutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/benchutil" ) type B struct { diff --git a/graphql_test.go b/graphql_test.go index 4b24c5f7..73034ce1 100644 --- a/graphql_test.go +++ b/graphql_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" ) type T struct { diff --git a/introspection.go b/introspection.go index a184f85d..65d4c9c7 100644 --- a/introspection.go +++ b/introspection.go @@ -5,8 +5,8 @@ import ( "reflect" "sort" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/printer" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/printer" ) const ( diff --git a/introspection_test.go b/introspection_test.go index 71d47d9f..11f60a37 100644 --- a/introspection_test.go +++ b/introspection_test.go @@ -3,10 +3,10 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) func g(t *testing.T, p graphql.Params) *graphql.Result { diff --git a/language/ast/arguments.go b/language/ast/arguments.go index 2ebd0fa7..2234825a 100644 --- a/language/ast/arguments.go +++ b/language/ast/arguments.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) // Argument implements Node diff --git a/language/ast/definitions.go b/language/ast/definitions.go index e16cf18d..defb1ef4 100644 --- a/language/ast/definitions.go +++ b/language/ast/definitions.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) type Definition interface { diff --git a/language/ast/directives.go b/language/ast/directives.go index 0c8a8c0e..c8da7863 100644 --- a/language/ast/directives.go +++ b/language/ast/directives.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) // Directive implements Node diff --git a/language/ast/document.go b/language/ast/document.go index dcb67034..333a6295 100644 --- a/language/ast/document.go +++ b/language/ast/document.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) // Document implements Node diff --git a/language/ast/location.go b/language/ast/location.go index 266dc847..84eeb2bd 100644 --- a/language/ast/location.go +++ b/language/ast/location.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/language/source" ) type Location struct { diff --git a/language/ast/name.go b/language/ast/name.go index ce0e9ebd..6ad4a114 100644 --- a/language/ast/name.go +++ b/language/ast/name.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) // Name implements Node diff --git a/language/ast/selections.go b/language/ast/selections.go index 55df71a3..4bf20c5b 100644 --- a/language/ast/selections.go +++ b/language/ast/selections.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) type Selection interface { diff --git a/language/ast/type_definitions.go b/language/ast/type_definitions.go index aefa70ed..e9e4399b 100644 --- a/language/ast/type_definitions.go +++ b/language/ast/type_definitions.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) // DescribableNode are nodes that have descriptions associated with them. diff --git a/language/ast/types.go b/language/ast/types.go index 0308a609..17ae9d72 100644 --- a/language/ast/types.go +++ b/language/ast/types.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) type Type interface { diff --git a/language/ast/values.go b/language/ast/values.go index 6c3c8864..86385d30 100644 --- a/language/ast/values.go +++ b/language/ast/values.go @@ -1,7 +1,7 @@ package ast import ( - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/kinds" ) type Value interface { diff --git a/language/lexer/lexer.go b/language/lexer/lexer.go index 1988c5fd..0788efe6 100644 --- a/language/lexer/lexer.go +++ b/language/lexer/lexer.go @@ -7,8 +7,8 @@ import ( "strings" "unicode/utf8" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/source" ) type TokenKind int diff --git a/language/lexer/lexer_test.go b/language/lexer/lexer_test.go index c476d8fa..4bef9ac0 100644 --- a/language/lexer/lexer_test.go +++ b/language/lexer/lexer_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/language/source" ) type Test struct { diff --git a/language/location/location.go b/language/location/location.go index 04bbde6e..a964eb5b 100644 --- a/language/location/location.go +++ b/language/location/location.go @@ -3,7 +3,7 @@ package location import ( "regexp" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/language/source" ) type SourceLocation struct { diff --git a/language/parser/parser.go b/language/parser/parser.go index 4ee1577c..34450b3f 100644 --- a/language/parser/parser.go +++ b/language/parser/parser.go @@ -3,10 +3,10 @@ package parser import ( "fmt" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/lexer" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/lexer" + "github.com/quan-to/graphql/language/source" ) type parseFn func(parser *Parser) (interface{}, error) diff --git a/language/parser/parser_test.go b/language/parser/parser_test.go index 3cc4253a..1b1a8ff4 100644 --- a/language/parser/parser_test.go +++ b/language/parser/parser_test.go @@ -7,11 +7,11 @@ import ( "strings" "testing" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/language/printer" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/language/printer" + "github.com/quan-to/graphql/language/source" ) func TestBadToken(t *testing.T) { diff --git a/language/parser/schema_parser_test.go b/language/parser/schema_parser_test.go index 2a122cae..8f239d38 100644 --- a/language/parser/schema_parser_test.go +++ b/language/parser/schema_parser_test.go @@ -4,10 +4,10 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/language/source" ) func parse(t *testing.T, query string) *ast.Document { diff --git a/language/printer/printer.go b/language/printer/printer.go index eb4d5ec1..7085e756 100644 --- a/language/printer/printer.go +++ b/language/printer/printer.go @@ -6,8 +6,8 @@ import ( "reflect" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/visitor" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/visitor" ) func getMapValue(m map[string]interface{}, key string) interface{} { diff --git a/language/printer/printer_test.go b/language/printer/printer_test.go index 1c48426d..543d59cd 100644 --- a/language/printer/printer_test.go +++ b/language/printer/printer_test.go @@ -5,10 +5,10 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/parser" - "github.com/graphql-go/graphql/language/printer" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/parser" + "github.com/quan-to/graphql/language/printer" + "github.com/quan-to/graphql/testutil" ) func parse(t *testing.T, query string) *ast.Document { diff --git a/language/printer/schema_printer_test.go b/language/printer/schema_printer_test.go index df2b98ef..03285fc7 100644 --- a/language/printer/schema_printer_test.go +++ b/language/printer/schema_printer_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/printer" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/printer" + "github.com/quan-to/graphql/testutil" ) func TestSchemaPrinter_PrintsMinimalAST(t *testing.T) { diff --git a/language/typeInfo/type_info.go b/language/typeInfo/type_info.go index e012ee02..1adb5720 100644 --- a/language/typeInfo/type_info.go +++ b/language/typeInfo/type_info.go @@ -1,7 +1,7 @@ package typeInfo import ( - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql/language/ast" ) // TypeInfoI defines the interface for TypeInfo Implementation diff --git a/language/visitor/visitor.go b/language/visitor/visitor.go index efd720dd..0720b459 100644 --- a/language/visitor/visitor.go +++ b/language/visitor/visitor.go @@ -4,8 +4,8 @@ import ( "encoding/json" "reflect" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/typeInfo" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/typeInfo" ) const ( diff --git a/language/visitor/visitor_test.go b/language/visitor/visitor_test.go index 33e6fee7..050b14be 100644 --- a/language/visitor/visitor_test.go +++ b/language/visitor/visitor_test.go @@ -7,13 +7,13 @@ import ( "fmt" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/kinds" - "github.com/graphql-go/graphql/language/parser" - "github.com/graphql-go/graphql/language/printer" - "github.com/graphql-go/graphql/language/visitor" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/kinds" + "github.com/quan-to/graphql/language/parser" + "github.com/quan-to/graphql/language/printer" + "github.com/quan-to/graphql/language/visitor" + "github.com/quan-to/graphql/testutil" ) func parse(t *testing.T, query string) *ast.Document { diff --git a/lists_test.go b/lists_test.go index 9c098ea3..29c9cb1f 100644 --- a/lists_test.go +++ b/lists_test.go @@ -4,10 +4,10 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) func checkList(t *testing.T, testType graphql.Type, testData interface{}, expected *graphql.Result) { diff --git a/located.go b/located.go index 66c61e49..8836b9c1 100644 --- a/located.go +++ b/located.go @@ -3,8 +3,8 @@ package graphql import ( "errors" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" ) func NewLocatedError(err interface{}, nodes []ast.Node) *gqlerrors.Error { diff --git a/mutations_test.go b/mutations_test.go index a97dda52..ba588742 100644 --- a/mutations_test.go +++ b/mutations_test.go @@ -4,10 +4,10 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) // testNumberHolder maps to numberHolderType diff --git a/nonnull_test.go b/nonnull_test.go index b5a6683a..9b013873 100644 --- a/nonnull_test.go +++ b/nonnull_test.go @@ -4,10 +4,10 @@ import ( "sort" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) var syncError = "sync" diff --git a/race_test.go b/race_test.go index 87eb770f..db77df41 100644 --- a/race_test.go +++ b/race_test.go @@ -23,7 +23,7 @@ func TestRace(t *testing.T) { "runtime" "sync" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) func main() { diff --git a/rules.go b/rules.go index ae0c75b9..e5649010 100644 --- a/rules.go +++ b/rules.go @@ -7,11 +7,11 @@ import ( "sort" "strings" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/kinds" - "github.com/graphql-go/graphql/language/printer" - "github.com/graphql-go/graphql/language/visitor" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/kinds" + "github.com/quan-to/graphql/language/printer" + "github.com/quan-to/graphql/language/visitor" ) // SpecifiedRules set includes all validation rules defined by the GraphQL spec. diff --git a/rules_arguments_of_correct_type_test.go b/rules_arguments_of_correct_type_test.go index ecd4bea4..32f5f382 100644 --- a/rules_arguments_of_correct_type_test.go +++ b/rules_arguments_of_correct_type_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_ArgValuesOfCorrectType_ValidValue_GoodIntValue(t *testing.T) { diff --git a/rules_default_values_of_correct_type_test.go b/rules_default_values_of_correct_type_test.go index 8457b388..b643f892 100644 --- a/rules_default_values_of_correct_type_test.go +++ b/rules_default_values_of_correct_type_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_VariableDefaultValuesOfCorrectType_VariablesWithNoDefaultValues(t *testing.T) { diff --git a/rules_fields_on_correct_type_test.go b/rules_fields_on_correct_type_test.go index 8cde9f37..f274ca97 100644 --- a/rules_fields_on_correct_type_test.go +++ b/rules_fields_on_correct_type_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_FieldsOnCorrectType_ObjectFieldSelection(t *testing.T) { diff --git a/rules_fragments_on_composite_types_test.go b/rules_fragments_on_composite_types_test.go index efe072ab..ce803776 100644 --- a/rules_fragments_on_composite_types_test.go +++ b/rules_fragments_on_composite_types_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_FragmentsOnCompositeTypes_ObjectIsValidFragmentType(t *testing.T) { diff --git a/rules_known_argument_names_test.go b/rules_known_argument_names_test.go index 574a0037..712ff8a5 100644 --- a/rules_known_argument_names_test.go +++ b/rules_known_argument_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_KnownArgumentNames_SingleArgIsKnown(t *testing.T) { diff --git a/rules_known_directives_rule_test.go b/rules_known_directives_rule_test.go index f3d8231c..33d7100d 100644 --- a/rules_known_directives_rule_test.go +++ b/rules_known_directives_rule_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_KnownDirectives_WithNoDirectives(t *testing.T) { diff --git a/rules_known_fragment_names_test.go b/rules_known_fragment_names_test.go index eb522b26..bac5a0c8 100644 --- a/rules_known_fragment_names_test.go +++ b/rules_known_fragment_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_KnownFragmentNames_KnownFragmentNamesAreValid(t *testing.T) { diff --git a/rules_known_type_names_test.go b/rules_known_type_names_test.go index 611a8037..cdb1d23e 100644 --- a/rules_known_type_names_test.go +++ b/rules_known_type_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_KnownTypeNames_KnownTypeNamesAreValid(t *testing.T) { diff --git a/rules_lone_anonymous_operation_rule_test.go b/rules_lone_anonymous_operation_rule_test.go index 8fb6894f..ee56615d 100644 --- a/rules_lone_anonymous_operation_rule_test.go +++ b/rules_lone_anonymous_operation_rule_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_AnonymousOperationMustBeAlone_NoOperations(t *testing.T) { diff --git a/rules_no_fragment_cycles_test.go b/rules_no_fragment_cycles_test.go index f194e305..afbb2879 100644 --- a/rules_no_fragment_cycles_test.go +++ b/rules_no_fragment_cycles_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_NoCircularFragmentSpreads_SingleReferenceIsValid(t *testing.T) { diff --git a/rules_no_undefined_variables_test.go b/rules_no_undefined_variables_test.go index 0b253715..ab9711ec 100644 --- a/rules_no_undefined_variables_test.go +++ b/rules_no_undefined_variables_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_NoUndefinedVariables_AllVariablesDefined(t *testing.T) { diff --git a/rules_no_unused_fragments_test.go b/rules_no_unused_fragments_test.go index 47f70ad3..0c241f22 100644 --- a/rules_no_unused_fragments_test.go +++ b/rules_no_unused_fragments_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_NoUnusedFragments_AllFragmentNamesAreUsed(t *testing.T) { diff --git a/rules_no_unused_variables_test.go b/rules_no_unused_variables_test.go index 7c331f4a..96f81522 100644 --- a/rules_no_unused_variables_test.go +++ b/rules_no_unused_variables_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_NoUnusedVariables_UsesAllVariables(t *testing.T) { diff --git a/rules_overlapping_fields_can_be_merged.go b/rules_overlapping_fields_can_be_merged.go index 836fb43f..7ad4e477 100644 --- a/rules_overlapping_fields_can_be_merged.go +++ b/rules_overlapping_fields_can_be_merged.go @@ -4,10 +4,10 @@ import ( "fmt" "strings" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/kinds" - "github.com/graphql-go/graphql/language/printer" - "github.com/graphql-go/graphql/language/visitor" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/kinds" + "github.com/quan-to/graphql/language/printer" + "github.com/quan-to/graphql/language/visitor" ) func fieldsConflictMessage(responseName string, reason conflictReason) string { diff --git a/rules_overlapping_fields_can_be_merged_test.go b/rules_overlapping_fields_can_be_merged_test.go index 97648ba2..b0611659 100644 --- a/rules_overlapping_fields_can_be_merged_test.go +++ b/rules_overlapping_fields_can_be_merged_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_OverlappingFieldsCanBeMerged_UniqueFields(t *testing.T) { diff --git a/rules_possible_fragment_spreads_test.go b/rules_possible_fragment_spreads_test.go index 9c0dff54..bb47aaa7 100644 --- a/rules_possible_fragment_spreads_test.go +++ b/rules_possible_fragment_spreads_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_PossibleFragmentSpreads_OfTheSameObject(t *testing.T) { diff --git a/rules_provided_non_null_arguments_test.go b/rules_provided_non_null_arguments_test.go index fed6c008..bd391220 100644 --- a/rules_provided_non_null_arguments_test.go +++ b/rules_provided_non_null_arguments_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_ProvidedNonNullArguments_IgnoresUnknownArguments(t *testing.T) { diff --git a/rules_scalar_leafs_test.go b/rules_scalar_leafs_test.go index 09729952..81e22e30 100644 --- a/rules_scalar_leafs_test.go +++ b/rules_scalar_leafs_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_ScalarLeafs_ValidScalarSelection(t *testing.T) { diff --git a/rules_unique_argument_names_test.go b/rules_unique_argument_names_test.go index b0e3ec51..135a1ee8 100644 --- a/rules_unique_argument_names_test.go +++ b/rules_unique_argument_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_UniqueArgumentNames_NoArgumentsOnField(t *testing.T) { diff --git a/rules_unique_fragment_names_test.go b/rules_unique_fragment_names_test.go index 5cacd5e9..e64e72dc 100644 --- a/rules_unique_fragment_names_test.go +++ b/rules_unique_fragment_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_UniqueFragmentNames_NoFragments(t *testing.T) { diff --git a/rules_unique_input_field_names_test.go b/rules_unique_input_field_names_test.go index a2e2e251..6a9f9a36 100644 --- a/rules_unique_input_field_names_test.go +++ b/rules_unique_input_field_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_UniqueInputFieldNames_InputObjectWithFields(t *testing.T) { diff --git a/rules_unique_operation_names_test.go b/rules_unique_operation_names_test.go index 265c3f42..ae853542 100644 --- a/rules_unique_operation_names_test.go +++ b/rules_unique_operation_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_UniqueOperationNames_NoOperations(t *testing.T) { diff --git a/rules_unique_variable_names_test.go b/rules_unique_variable_names_test.go index 63bf7778..b5709b1c 100644 --- a/rules_unique_variable_names_test.go +++ b/rules_unique_variable_names_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_UniqueVariableNames_UniqueVariableNames(t *testing.T) { diff --git a/rules_variables_are_input_types_test.go b/rules_variables_are_input_types_test.go index fb1d1675..660924c5 100644 --- a/rules_variables_are_input_types_test.go +++ b/rules_variables_are_input_types_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_VariablesAreInputTypes_(t *testing.T) { diff --git a/rules_variables_in_allowed_position_test.go b/rules_variables_in_allowed_position_test.go index 78dd77ea..602d8554 100644 --- a/rules_variables_in_allowed_position_test.go +++ b/rules_variables_in_allowed_position_test.go @@ -3,9 +3,9 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/testutil" ) func TestValidate_VariablesInAllowedPosition_BooleanToBoolean(t *testing.T) { diff --git a/scalars.go b/scalars.go index 94c1943a..d0951db5 100644 --- a/scalars.go +++ b/scalars.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql/language/ast" ) // As per the GraphQL Spec, Integers are only treated as valid when a valid diff --git a/scalars_parse_test.go b/scalars_parse_test.go index 4388e4a9..091cb97b 100644 --- a/scalars_parse_test.go +++ b/scalars_parse_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/language/ast" ) func TestTypeSystem_Scalar_ParseValueOutputDateTime(t *testing.T) { diff --git a/scalars_serialization_test.go b/scalars_serialization_test.go index e6a85f51..9c1d9b93 100644 --- a/scalars_serialization_test.go +++ b/scalars_serialization_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/graphql-go/graphql" + "github.com/quan-to/graphql" ) type intSerializationTest struct { diff --git a/testutil/rules_test_harness.go b/testutil/rules_test_harness.go index a359d82b..fa8eafe0 100644 --- a/testutil/rules_test_harness.go +++ b/testutil/rules_test_harness.go @@ -3,11 +3,11 @@ package testutil import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/language/parser" - "github.com/graphql-go/graphql/language/source" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/language/parser" + "github.com/quan-to/graphql/language/source" ) var TestSchema *graphql.Schema diff --git a/testutil/testutil.go b/testutil/testutil.go index 658928b1..190fb90c 100644 --- a/testutil/testutil.go +++ b/testutil/testutil.go @@ -7,10 +7,10 @@ import ( "strconv" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/parser" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/parser" ) var ( diff --git a/testutil/testutil_test.go b/testutil/testutil_test.go index ca61eec7..9fb8dff1 100644 --- a/testutil/testutil_test.go +++ b/testutil/testutil_test.go @@ -3,7 +3,7 @@ package testutil_test import ( "testing" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql/testutil" ) func TestSubsetSlice_Simple(t *testing.T) { diff --git a/type_info.go b/type_info.go index 20c8886a..928a21f3 100644 --- a/type_info.go +++ b/type_info.go @@ -1,8 +1,8 @@ package graphql import ( - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/kinds" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/kinds" ) // TODO: can move TypeInfo to a utils package if there ever is one diff --git a/types.go b/types.go index 5b991d8c..581932f1 100644 --- a/types.go +++ b/types.go @@ -1,7 +1,7 @@ package graphql import ( - "github.com/graphql-go/graphql/gqlerrors" + "github.com/quan-to/graphql/gqlerrors" ) // type Schema interface{} diff --git a/union_interface_test.go b/union_interface_test.go index 8f850d60..3fe5f476 100644 --- a/union_interface_test.go +++ b/union_interface_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" ) type testNamedType interface { diff --git a/util_test.go b/util_test.go index 6fb6e900..03826c4e 100644 --- a/util_test.go +++ b/util_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/testutil" ) type Person struct { diff --git a/validation_test.go b/validation_test.go index 6c8fc521..6ca69284 100644 --- a/validation_test.go +++ b/validation_test.go @@ -3,8 +3,8 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/language/ast" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/language/ast" ) var someScalarType = graphql.NewScalar(graphql.ScalarConfig{ diff --git a/validator.go b/validator.go index 33379b85..1fa07fa4 100644 --- a/validator.go +++ b/validator.go @@ -1,10 +1,10 @@ package graphql import ( - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/kinds" - "github.com/graphql-go/graphql/language/visitor" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/kinds" + "github.com/quan-to/graphql/language/visitor" ) type ValidationResult struct { diff --git a/validator_test.go b/validator_test.go index 6eaf0005..a394caf7 100644 --- a/validator_test.go +++ b/validator_test.go @@ -3,13 +3,13 @@ package graphql_test import ( "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/language/parser" - "github.com/graphql-go/graphql/language/source" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/language/parser" + "github.com/quan-to/graphql/language/source" + "github.com/quan-to/graphql/testutil" ) func expectValid(t *testing.T, schema *graphql.Schema, queryString string) { diff --git a/values.go b/values.go index 06c08af6..fd3a8442 100644 --- a/values.go +++ b/values.go @@ -8,10 +8,10 @@ import ( "sort" "strings" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/kinds" - "github.com/graphql-go/graphql/language/printer" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/kinds" + "github.com/quan-to/graphql/language/printer" ) // Prepares an object map of variableValues of the correct type based on the diff --git a/variables_test.go b/variables_test.go index 9dc430df..84e39bef 100644 --- a/variables_test.go +++ b/variables_test.go @@ -5,11 +5,11 @@ import ( "reflect" "testing" - "github.com/graphql-go/graphql" - "github.com/graphql-go/graphql/gqlerrors" - "github.com/graphql-go/graphql/language/ast" - "github.com/graphql-go/graphql/language/location" - "github.com/graphql-go/graphql/testutil" + "github.com/quan-to/graphql" + "github.com/quan-to/graphql/gqlerrors" + "github.com/quan-to/graphql/language/ast" + "github.com/quan-to/graphql/language/location" + "github.com/quan-to/graphql/testutil" ) var testComplexScalar *graphql.Scalar = graphql.NewScalar(graphql.ScalarConfig{