-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from guy120494/fix-connection
Fix connection
- Loading branch information
Showing
247 changed files
with
772 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.17 KB
out/production/classes/graphql/annotations/GraphQLFieldDefinitionWrapper.class
Binary file not shown.
Binary file added
BIN
+430 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLBatched.class
Binary file not shown.
Binary file added
BIN
+660 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLDataFetcher.class
Binary file not shown.
Binary file added
BIN
+554 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLDefaultValue.class
Binary file not shown.
Binary file added
BIN
+484 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLDeprecate.class
Binary file not shown.
Binary file added
BIN
+530 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLDescription.class
Binary file not shown.
Binary file added
BIN
+486 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLField.class
Binary file not shown.
Binary file added
BIN
+457 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLID.class
Binary file not shown.
Binary file added
BIN
+444 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLInvokeDetached.class
Binary file not shown.
Binary file added
BIN
+417 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLMutation.class
Binary file not shown.
Binary file added
BIN
+484 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLName.class
Binary file not shown.
Binary file added
BIN
+463 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLNonNull.class
Binary file not shown.
Binary file added
BIN
+429 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLRelayMutation.class
Binary file not shown.
Binary file added
BIN
+670 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLType.class
Binary file not shown.
Binary file added
BIN
+502 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLTypeExtension.class
Binary file not shown.
Binary file added
BIN
+529 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLTypeResolver.class
Binary file not shown.
Binary file added
BIN
+504 Bytes
out/production/classes/graphql/annotations/annotationTypes/GraphQLUnion.class
Binary file not shown.
Binary file added
BIN
+1.24 KB
out/production/classes/graphql/annotations/connection/AbstractPaginatedData.class
Binary file not shown.
Binary file added
BIN
+4.12 KB
out/production/classes/graphql/annotations/connection/ConnectionDataFetcher.class
Binary file not shown.
Binary file added
BIN
+304 Bytes
out/production/classes/graphql/annotations/connection/ConnectionFetcher.class
Binary file not shown.
Binary file added
BIN
+211 Bytes
out/production/classes/graphql/annotations/connection/ConnectionValidator.class
Binary file not shown.
Binary file added
BIN
+900 Bytes
out/production/classes/graphql/annotations/connection/GraphQLConnection.class
Binary file not shown.
Binary file added
BIN
+437 Bytes
out/production/classes/graphql/annotations/connection/GraphQLConnectionException.class
Binary file not shown.
Binary file added
BIN
+401 Bytes
out/production/classes/graphql/annotations/connection/PaginatedData.class
Binary file not shown.
Binary file added
BIN
+3.85 KB
out/production/classes/graphql/annotations/connection/PaginatedDataConnectionFetcher.class
Binary file not shown.
Binary file added
BIN
+1.73 KB
...duction/classes/graphql/annotations/connection/PaginatedDataConnectionTypeValidator.class
Binary file not shown.
Binary file added
BIN
+2.56 KB
out/production/classes/graphql/annotations/connection/SimplePaginatedData.class
Binary file not shown.
Binary file added
BIN
+1.45 KB
out/production/classes/graphql/annotations/dataFetchers/BatchedMethodDataFetcher.class
Binary file not shown.
Binary file added
BIN
+2.91 KB
out/production/classes/graphql/annotations/dataFetchers/ExtensionDataFetcherWrapper.class
Binary file not shown.
Binary file added
BIN
+7.02 KB
out/production/classes/graphql/annotations/dataFetchers/MethodDataFetcher.class
Binary file not shown.
Binary file added
BIN
+3.99 KB
out/production/classes/graphql/annotations/dataFetchers/RelayMutationMethodDataFetcher.class
Binary file not shown.
Binary file added
BIN
+275 Bytes
out/production/classes/graphql/annotations/dataFetchers/connection/Connection.class
Binary file not shown.
Binary file added
BIN
+4.16 KB
...roduction/classes/graphql/annotations/dataFetchers/connection/ConnectionDataFetcher.class
Binary file not shown.
Binary file added
BIN
+1.51 KB
...roduction/classes/graphql/annotations/dataFetchers/connection/DispatchingConnection.class
Binary file not shown.
Binary file added
BIN
+696 Bytes
out/production/classes/graphql/annotations/dataFetchers/connection/ListConnection.class
Binary file not shown.
Binary file added
BIN
+5.43 KB
out/production/classes/graphql/annotations/dataFetchers/connection/StreamConnection.class
Binary file not shown.
Binary file added
BIN
+5.49 KB
out/production/classes/graphql/annotations/processor/GraphQLAnnotations.class
Binary file not shown.
Binary file added
BIN
+3.7 KB
out/production/classes/graphql/annotations/processor/ProcessingElementsContainer.class
Binary file not shown.
Binary file added
BIN
+767 Bytes
...oduction/classes/graphql/annotations/processor/exceptions/CannotCastMemberException.class
Binary file not shown.
Binary file added
BIN
+526 Bytes
...uction/classes/graphql/annotations/processor/exceptions/GraphQLAnnotationsException.class
Binary file not shown.
Binary file added
BIN
+459 Bytes
...classes/graphql/annotations/processor/graphQLProcessors/GraphQLAnnotationsProcessor.class
Binary file not shown.
Binary file added
BIN
+3.14 KB
...ction/classes/graphql/annotations/processor/graphQLProcessors/GraphQLInputProcessor.class
Binary file not shown.
Binary file added
BIN
+2.11 KB
...tion/classes/graphql/annotations/processor/graphQLProcessors/GraphQLOutputProcessor.class
Binary file not shown.
Binary file added
BIN
+17.3 KB
out/production/classes/graphql/annotations/processor/retrievers/GraphQLFieldRetriever.class
Binary file not shown.
Binary file added
BIN
+4.65 KB
...uction/classes/graphql/annotations/processor/retrievers/GraphQLInputObjectRetriever.class
Binary file not shown.
Binary file added
BIN
+1.38 KB
...oduction/classes/graphql/annotations/processor/retrievers/GraphQLInterfaceRetriever.class
Binary file not shown.
Binary file added
BIN
+2.08 KB
out/production/classes/graphql/annotations/processor/retrievers/GraphQLObjectHandler.class
Binary file not shown.
Binary file added
BIN
+3 KB
...duction/classes/graphql/annotations/processor/retrievers/GraphQLObjectInfoRetriever.class
Binary file not shown.
Binary file added
BIN
+4.92 KB
...ction/classes/graphql/annotations/processor/retrievers/GraphQLOutputObjectRetriever.class
Binary file not shown.
Binary file added
BIN
+6.78 KB
...tion/classes/graphql/annotations/processor/retrievers/fieldBuilders/ArgumentBuilder.class
Binary file not shown.
Binary file added
BIN
+268 Bytes
out/production/classes/graphql/annotations/processor/retrievers/fieldBuilders/Builder.class
Binary file not shown.
Binary file added
BIN
+1.38 KB
...ion/classes/graphql/annotations/processor/retrievers/fieldBuilders/DeprecateBuilder.class
Binary file not shown.
Binary file added
BIN
+1.25 KB
...n/classes/graphql/annotations/processor/retrievers/fieldBuilders/DescriptionBuilder.class
Binary file not shown.
Binary file added
BIN
+5.43 KB
...raphql/annotations/processor/retrievers/fieldBuilders/field/FieldDataFetcherBuilder.class
Binary file not shown.
Binary file added
BIN
+1.33 KB
...asses/graphql/annotations/processor/retrievers/fieldBuilders/field/FieldNameBuilder.class
Binary file not shown.
Binary file added
BIN
+4.23 KB
...phql/annotations/processor/retrievers/fieldBuilders/method/MethodDataFetcherBuilder.class
Binary file not shown.
Binary file added
BIN
+1.83 KB
...ses/graphql/annotations/processor/retrievers/fieldBuilders/method/MethodNameBuilder.class
Binary file not shown.
Binary file added
BIN
+2.17 KB
...ses/graphql/annotations/processor/retrievers/fieldBuilders/method/MethodTypeBuilder.class
Binary file not shown.
Binary file added
BIN
+2.76 KB
...roduction/classes/graphql/annotations/processor/searchAlgorithms/BreadthFirstSearch.class
Binary file not shown.
Binary file added
BIN
+1.86 KB
out/production/classes/graphql/annotations/processor/searchAlgorithms/ParentalSearch.class
Binary file not shown.
Binary file added
BIN
+303 Bytes
out/production/classes/graphql/annotations/processor/searchAlgorithms/SearchAlgorithm.class
Binary file not shown.
Binary file added
BIN
+4.74 KB
out/production/classes/graphql/annotations/processor/typeBuilders/EnumBuilder.class
Binary file not shown.
Binary file added
BIN
+4.59 KB
out/production/classes/graphql/annotations/processor/typeBuilders/InterfaceBuilder.class
Binary file not shown.
Binary file added
BIN
+6.04 KB
out/production/classes/graphql/annotations/processor/typeBuilders/ObjectBuilder.class
Binary file not shown.
Binary file added
BIN
+1.97 KB
out/production/classes/graphql/annotations/processor/typeBuilders/UnionBuilder$1.class
Binary file not shown.
Binary file added
BIN
+5.17 KB
out/production/classes/graphql/annotations/processor/typeBuilders/UnionBuilder.class
Binary file not shown.
Binary file added
BIN
+2.65 KB
out/production/classes/graphql/annotations/processor/typeFunctions/BatchedTypeFunction.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
out/production/classes/graphql/annotations/processor/typeFunctions/BooleanFunction.class
Binary file not shown.
Binary file added
BIN
+6.22 KB
out/production/classes/graphql/annotations/processor/typeFunctions/DefaultTypeFunction.class
Binary file not shown.
Binary file added
BIN
+2.13 KB
out/production/classes/graphql/annotations/processor/typeFunctions/FloatFunction.class
Binary file not shown.
Binary file added
BIN
+2.27 KB
out/production/classes/graphql/annotations/processor/typeFunctions/IDFunction.class
Binary file not shown.
Binary file added
BIN
+2.09 KB
out/production/classes/graphql/annotations/processor/typeFunctions/IntegerFunction.class
Binary file not shown.
Binary file added
BIN
+2.44 KB
out/production/classes/graphql/annotations/processor/typeFunctions/IterableFunction.class
Binary file not shown.
Binary file added
BIN
+2.08 KB
out/production/classes/graphql/annotations/processor/typeFunctions/LongFunction.class
Binary file not shown.
Binary file added
BIN
+2.92 KB
out/production/classes/graphql/annotations/processor/typeFunctions/ObjectFunction.class
Binary file not shown.
Binary file added
BIN
+2.98 KB
out/production/classes/graphql/annotations/processor/typeFunctions/OptionalFunction.class
Binary file not shown.
Binary file added
BIN
+2.44 KB
out/production/classes/graphql/annotations/processor/typeFunctions/StreamFunction.class
Binary file not shown.
Binary file added
BIN
+2.07 KB
out/production/classes/graphql/annotations/processor/typeFunctions/StringFunction.class
Binary file not shown.
Binary file added
BIN
+1.59 KB
out/production/classes/graphql/annotations/processor/typeFunctions/TypeFunction.class
Binary file not shown.
Binary file added
BIN
+1.1 KB
out/production/classes/graphql/annotations/processor/util/Base64.class
Binary file not shown.
Binary file added
BIN
+2.89 KB
out/production/classes/graphql/annotations/processor/util/ConnectionUtil.class
Binary file not shown.
Binary file added
BIN
+3.56 KB
out/production/classes/graphql/annotations/processor/util/DataFetcherConstructor.class
Binary file not shown.
Binary file added
BIN
+1.85 KB
out/production/classes/graphql/annotations/processor/util/NamingKit.class
Binary file not shown.
Binary file added
BIN
+1.24 KB
out/production/classes/graphql/annotations/processor/util/ObjectUtil.class
Binary file not shown.
Binary file added
BIN
+3.26 KB
out/production/classes/graphql/annotations/processor/util/ReflectionKit.class
Binary file not shown.
Binary file added
BIN
+881 Bytes
out/production/classes/graphql/annotations/processor/util/RelayKit.class
Binary file not shown.
Binary file added
BIN
+6.45 KB
out/production/classes/graphql/annotations/strategies/EnhancedExecutionStrategy.class
Binary file not shown.
Binary file added
BIN
+4.19 KB
out/production/classes/graphql/annotations/typeResolvers/UnionTypeResolver.class
Binary file not shown.
Binary file added
BIN
+700 Bytes
out/test/classes/graphql/annotations/GraphQLBatchedTest$NoListBatchedField.class
Binary file not shown.
Binary file added
BIN
+852 Bytes
out/test/classes/graphql/annotations/GraphQLBatchedTest$NoParameterizedBatchedField.class
Binary file not shown.
Binary file added
BIN
+892 Bytes
out/test/classes/graphql/annotations/GraphQLBatchedTest$NoStaticBatchedField.class
Binary file not shown.
Binary file added
BIN
+868 Bytes
out/test/classes/graphql/annotations/GraphQLBatchedTest$SimpleBatchedField.class
Binary file not shown.
Binary file added
BIN
+937 Bytes
out/test/classes/graphql/annotations/GraphQLBatchedTest$TestBatchedObject.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+978 Bytes
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$Sample.class
Binary file not shown.
Binary file added
BIN
+777 Bytes
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$SampleDataFetcher.class
Binary file not shown.
Binary file added
BIN
+1.14 KB
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$SampleMultiArgDataFetcher.class
Binary file not shown.
Binary file added
BIN
+1.02 KB
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$SampleOneArgDataFetcher.class
Binary file not shown.
Binary file added
BIN
+1.05 KB
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$TestGraphQLQuery.class
Binary file not shown.
Binary file added
BIN
+1.5 KB
...es/graphql/annotations/GraphQLDataFetcherTest$TestMethodWithDataFetcherGraphQLQuery.class
Binary file not shown.
Binary file added
BIN
+1.07 KB
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$TestSample.class
Binary file not shown.
Binary file added
BIN
+1.01 KB
out/test/classes/graphql/annotations/GraphQLDataFetcherTest$TestSampleMethod.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.03 KB
out/test/classes/graphql/annotations/GraphQLExtensionsTest$TestDataFetcher.class
Binary file not shown.
Binary file added
BIN
+799 Bytes
out/test/classes/graphql/annotations/GraphQLExtensionsTest$TestObject.class
Binary file not shown.
Binary file added
BIN
+1.6 KB
out/test/classes/graphql/annotations/GraphQLExtensionsTest$TestObjectExtension.class
Binary file not shown.
Binary file added
BIN
+1017 Bytes
out/test/classes/graphql/annotations/GraphQLExtensionsTest$TestObjectExtensionInvalid.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+628 Bytes
out/test/classes/graphql/annotations/GraphQLFragmentTest$MyInterface.class
Binary file not shown.
Binary file added
BIN
+980 Bytes
out/test/classes/graphql/annotations/GraphQLFragmentTest$MyObject.class
Binary file not shown.
Binary file added
BIN
+682 Bytes
out/test/classes/graphql/annotations/GraphQLFragmentTest$MyObject2.class
Binary file not shown.
Binary file added
BIN
+1.02 KB
out/test/classes/graphql/annotations/GraphQLFragmentTest$MyTypeResolver.class
Binary file not shown.
Binary file added
BIN
+1.03 KB
out/test/classes/graphql/annotations/GraphQLFragmentTest$RootObject.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.41 KB
out/test/classes/graphql/annotations/GraphQLInputTest$InputObject.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+719 Bytes
out/test/classes/graphql/annotations/GraphQLInputTest$QueryIface.class
Binary file not shown.
Binary file added
BIN
+729 Bytes
out/test/classes/graphql/annotations/GraphQLInputTest$QueryList.class
Binary file not shown.
Binary file added
BIN
+1.27 KB
out/test/classes/graphql/annotations/GraphQLInputTest$QueryMultipleDefinitions.class
Binary file not shown.
Binary file added
BIN
+741 Bytes
out/test/classes/graphql/annotations/GraphQLInputTest$QueryRecursion.class
Binary file not shown.
Binary file added
BIN
+1.39 KB
out/test/classes/graphql/annotations/GraphQLInputTest$RecursiveInputObject.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+891 Bytes
out/test/classes/graphql/annotations/GraphQLInputTest$SubInputObject.class
Binary file not shown.
Binary file added
BIN
+798 Bytes
out/test/classes/graphql/annotations/GraphQLInputTest$TestIface.class
Binary file not shown.
Binary file added
BIN
+1.06 KB
out/test/classes/graphql/annotations/GraphQLInputTest$TestObject.class
Binary file not shown.
Binary file added
BIN
+1.84 KB
out/test/classes/graphql/annotations/GraphQLInputTest$TestObjectList.class
Binary file not shown.
Binary file added
BIN
+1.38 KB
out/test/classes/graphql/annotations/GraphQLInputTest$TestObjectRec.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+585 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$BaseTestIface.class
Binary file not shown.
Binary file added
BIN
+760 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$IfaceFetcher.class
Binary file not shown.
Binary file added
BIN
+384 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$NoResolverIface.class
Binary file not shown.
Binary file added
BIN
+878 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$Query.class
Binary file not shown.
Binary file added
BIN
+1.06 KB
out/test/classes/graphql/annotations/GraphQLInterfaceTest$Resolver.class
Binary file not shown.
Binary file added
BIN
+567 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$TestIface.class
Binary file not shown.
Binary file added
BIN
+612 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$TestObject.class
Binary file not shown.
Binary file added
BIN
+743 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$TestObject1.class
Binary file not shown.
Binary file added
BIN
+580 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$TestUnion.class
Binary file not shown.
Binary file added
BIN
+768 Bytes
out/test/classes/graphql/annotations/GraphQLInterfaceTest$UnionQuery.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+688 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$Class1.class
Binary file not shown.
Binary file added
BIN
+688 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$Class2.class
Binary file not shown.
Binary file added
BIN
+660 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$DefaultAValue.class
Binary file not shown.
Binary file added
BIN
+1.22 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$EnumTest$E.class
Binary file not shown.
Binary file added
BIN
+1.12 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$EnumTest.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+489 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$IfaceImpl.class
Binary file not shown.
Binary file added
BIN
+842 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$InheritGraphQLFieldTest.class
Binary file not shown.
Binary file added
BIN
+666 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$OnMethodTest.class
Binary file not shown.
Binary file added
BIN
+1.52 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$OptionalTest.class
Binary file not shown.
Binary file added
BIN
+938 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$ParametrizedArgsTest.class
Binary file not shown.
Binary file added
BIN
+1.37 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$PrivateTestField.class
Binary file not shown.
Binary file added
BIN
+795 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestAccessors.class
Binary file not shown.
Binary file added
BIN
+1.27 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$TestComplexInputArgument.class
Binary file not shown.
Binary file added
BIN
+659 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestCustomType.class
Binary file not shown.
Binary file added
BIN
+949 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestCustomTypeFunction.class
Binary file not shown.
Binary file added
BIN
+906 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestDataFetcher.class
Binary file not shown.
Binary file added
BIN
+431 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestDefaults.class
Binary file not shown.
Binary file added
BIN
+667 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestFetcher.class
Binary file not shown.
Binary file added
BIN
+660 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestField.class
Binary file not shown.
Binary file added
BIN
+813 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestInputArgument.class
Binary file not shown.
Binary file added
BIN
+2.51 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$TestObject.class
Binary file not shown.
Binary file added
BIN
+1.02 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$TestObjectBridgMethod.class
Binary file not shown.
Binary file added
BIN
+922 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestObjectBridgMethodParent.class
Binary file not shown.
Binary file added
BIN
+724 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestObjectInherited.class
Binary file not shown.
Binary file added
BIN
+1.58 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$TestObjectInput.class
Binary file not shown.
Binary file added
BIN
+838 Bytes
out/test/classes/graphql/annotations/GraphQLObjectTest$TestObjectNamedArgs.class
Binary file not shown.
Binary file added
BIN
+2.08 KB
out/test/classes/graphql/annotations/GraphQLObjectTest$UUIDTypeFunction.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.03 KB
out/test/classes/graphql/annotations/GraphQLSimpleSchemaTest$Query.class
Binary file not shown.
Binary file added
BIN
+845 Bytes
out/test/classes/graphql/annotations/GraphQLSimpleSchemaTest$User.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+590 Bytes
out/test/classes/graphql/annotations/MethodDataFetcherTest$TestException.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+840 Bytes
out/test/classes/graphql/annotations/RelayTest$ResultTypeResolver.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+644 Bytes
out/test/classes/graphql/annotations/RelayTest$WrongReturnType.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+914 Bytes
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$CustomConnection.class
Binary file not shown.
Binary file added
BIN
+959 Bytes
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$DuplicateTest.class
Binary file not shown.
Binary file added
BIN
+710 Bytes
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$Obj.class
Binary file not shown.
Binary file added
BIN
+1.7 KB
...lasses/graphql/annotations/connection/GraphQLConnectionTest$TestConnectionOnField$1.class
Binary file not shown.
Binary file added
BIN
+1.39 KB
.../classes/graphql/annotations/connection/GraphQLConnectionTest$TestConnectionOnField.class
Binary file not shown.
Binary file added
BIN
+1.75 KB
...test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestConnections$1.class
Binary file not shown.
Binary file added
BIN
+1.75 KB
...test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestConnections$2.class
Binary file not shown.
Binary file added
BIN
+1.78 KB
...test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestConnections$3.class
Binary file not shown.
Binary file added
BIN
+1.75 KB
...test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestConnections$4.class
Binary file not shown.
Binary file added
BIN
+5.9 KB
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestConnections.class
Binary file not shown.
Binary file added
BIN
+1.74 KB
...classes/graphql/annotations/connection/GraphQLConnectionTest$TestCustomConnection$1.class
Binary file not shown.
Binary file added
BIN
+1.66 KB
...t/classes/graphql/annotations/connection/GraphQLConnectionTest$TestCustomConnection.class
Binary file not shown.
Binary file added
BIN
+1.69 KB
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestListField$1.class
Binary file not shown.
Binary file added
BIN
+1.42 KB
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestListField.class
Binary file not shown.
Binary file added
BIN
+1.7 KB
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestListField2$1.class
Binary file not shown.
Binary file added
BIN
+1.43 KB
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest$TestListField2.class
Binary file not shown.
Binary file added
BIN
+8.09 KB
out/test/classes/graphql/annotations/connection/GraphQLConnectionTest.class
Binary file not shown.
Binary file added
BIN
+1.89 KB
...ql/annotations/connection/GraphQLEnhancedConnectionTest$GoodConnectionDataFetcher$1.class
Binary file not shown.
Binary file added
BIN
+2.29 KB
...phql/annotations/connection/GraphQLEnhancedConnectionTest$GoodConnectionDataFetcher.class
Binary file not shown.
Binary file added
BIN
+1.31 KB
...ses/graphql/annotations/connection/GraphQLEnhancedConnectionTest$NotGoodDataFetcher.class
Binary file not shown.
Binary file added
BIN
+1.39 KB
...raphql/annotations/connection/GraphQLEnhancedConnectionTest$NotValidConnectionField.class
Binary file not shown.
Binary file added
BIN
+904 Bytes
out/test/classes/graphql/annotations/connection/GraphQLEnhancedConnectionTest$Obj.class
Binary file not shown.
Binary file added
BIN
+1.55 KB
.../classes/graphql/annotations/connection/GraphQLEnhancedConnectionTest$TestListField.class
Binary file not shown.
Binary file added
BIN
+5.09 KB
out/test/classes/graphql/annotations/connection/GraphQLEnhancedConnectionTest.class
Binary file not shown.
Binary file added
BIN
+2.47 KB
...classes/graphql/annotations/processor/retrievers/fieldBuilders/DeprecateBuilderTest.class
Binary file not shown.
Binary file added
BIN
+2.44 KB
...asses/graphql/annotations/processor/retrievers/fieldBuilders/DescriptionBuilderTest.class
Binary file not shown.
Binary file added
BIN
+1.58 KB
...s/graphql/annotations/processor/retrievers/fieldBuilders/field/FieldNameBuilderTest.class
Binary file not shown.
Binary file added
BIN
+2.61 KB
...graphql/annotations/processor/retrievers/fieldBuilders/method/MethodNameBuilderTest.class
Binary file not shown.
Binary file added
BIN
+1.65 KB
out/test/classes/graphql/annotations/processor/typeFunctions/BooleanFunctionTests.class
Binary file not shown.
Binary file added
BIN
+1.49 KB
out/test/classes/graphql/annotations/processor/typeFunctions/DefaultTypeFunctionTest$A.class
Binary file not shown.
Binary file added
BIN
+795 Bytes
.../classes/graphql/annotations/processor/typeFunctions/DefaultTypeFunctionTest$Class1.class
Binary file not shown.
Binary file added
BIN
+824 Bytes
.../classes/graphql/annotations/processor/typeFunctions/DefaultTypeFunctionTest$Class2.class
Binary file not shown.
Binary file added
BIN
+8.84 KB
out/test/classes/graphql/annotations/processor/typeFunctions/DefaultTypeFunctionTest.class
Binary file not shown.
Binary file added
BIN
+1.31 KB
...t/classes/graphql/annotations/processor/typeFunctions/DefaultTypeFunctionTestHelper.class
Binary file not shown.
Binary file added
BIN
+1.7 KB
out/test/classes/graphql/annotations/processor/typeFunctions/FloatFunctionTests.class
Binary file not shown.
Binary file added
BIN
+3.8 KB
out/test/classes/graphql/annotations/processor/typeFunctions/IDFunctionTests.class
Binary file not shown.
Binary file added
BIN
+1.64 KB
out/test/classes/graphql/annotations/processor/typeFunctions/IntegerFunctionTests.class
Binary file not shown.
Binary file added
BIN
+1.63 KB
out/test/classes/graphql/annotations/processor/typeFunctions/LongFunctionTests.class
Binary file not shown.
Binary file added
BIN
+1.58 KB
out/test/classes/graphql/annotations/processor/typeFunctions/StringFunctionTests.class
Binary file not shown.
Binary file added
BIN
+3.46 KB
out/test/classes/graphql/annotations/processor/util/CustomRelay.class
Binary file not shown.
Binary file added
BIN
+1.11 KB
out/test/classes/graphql/annotations/processor/util/NamingKitTest.class
Binary file not shown.
45 changes: 45 additions & 0 deletions
45
src/main/java/graphql/annotations/connection/AbstractPaginatedData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
import java.util.Iterator; | ||
|
||
public abstract class AbstractPaginatedData<T> implements PaginatedData<T> { | ||
|
||
boolean hasPreviousPage; | ||
boolean hasNextPage; | ||
Iterable<T> data; | ||
|
||
public AbstractPaginatedData(boolean hasPreviousPage, boolean hasNextPage, Iterable<T> data) { | ||
this.hasNextPage = hasNextPage; | ||
this.hasPreviousPage = hasPreviousPage; | ||
this.data = data; | ||
} | ||
|
||
@Override | ||
public boolean hasNextPage() { | ||
return hasNextPage; | ||
} | ||
|
||
@Override | ||
public boolean hasPreviousPage() { | ||
return hasPreviousPage; | ||
} | ||
|
||
@Override | ||
public Iterator<T> iterator() { | ||
return data.iterator(); | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
src/main/java/graphql/annotations/connection/ConnectionDataFetcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
import graphql.relay.Connection; | ||
import graphql.schema.DataFetcher; | ||
import graphql.schema.DataFetchingEnvironment; | ||
|
||
import java.lang.reflect.Constructor; | ||
import java.util.Arrays; | ||
import java.util.Optional; | ||
|
||
import static graphql.annotations.processor.util.ReflectionKit.constructNewInstance; | ||
|
||
|
||
public class ConnectionDataFetcher<T> implements DataFetcher<Connection<T>> { | ||
private final DataFetcher<?> actualDataFetcher; | ||
private final Constructor<ConnectionFetcher<T>> constructor; | ||
|
||
@SuppressWarnings("unchecked") | ||
public ConnectionDataFetcher(Class<? extends ConnectionFetcher<T>> connection, DataFetcher<?> actualDataFetcher) { | ||
this.actualDataFetcher = actualDataFetcher; | ||
Optional<Constructor<ConnectionFetcher<T>>> constructor = | ||
Arrays.stream(connection.getConstructors()). | ||
filter(c -> c.getParameterCount() == 1). | ||
map(c -> (Constructor<ConnectionFetcher<T>>) c). | ||
findFirst(); | ||
if (constructor.isPresent()) { | ||
this.constructor = constructor.get(); | ||
} else { | ||
throw new IllegalArgumentException(connection.getSimpleName() + " doesn't have a single argument constructor"); | ||
} | ||
} | ||
|
||
@Override | ||
public Connection<T> get(DataFetchingEnvironment environment) { | ||
ConnectionFetcher<T> conn = constructNewInstance(constructor, actualDataFetcher); | ||
return conn.get(environment); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/graphql/annotations/connection/ConnectionFetcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
import graphql.relay.Connection; | ||
import graphql.schema.DataFetcher; | ||
|
||
public interface ConnectionFetcher<T> extends DataFetcher<Connection<T>> { | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/graphql/annotations/connection/ConnectionValidator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
import java.lang.reflect.AccessibleObject; | ||
|
||
public interface ConnectionValidator { | ||
|
||
void validate(AccessibleObject field); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/graphql/annotations/connection/GraphQLConnectionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
class GraphQLConnectionException extends RuntimeException { | ||
|
||
GraphQLConnectionException(String error) { | ||
super(error); | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
src/main/java/graphql/annotations/connection/PaginatedData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
/** | ||
* This class is the result of a connection. Every Graphql connection field must return this interface | ||
* <p> | ||
* NOTE: this interface extends Iterable. The data is retrieved from the "iterator" function. | ||
* Please implement the iterator with data structure that has order | ||
* | ||
* @param <T> the data of which we paginated over | ||
*/ | ||
public interface PaginatedData<T> extends Iterable<T> { | ||
|
||
/** | ||
* Whether or not this is the last page | ||
* | ||
* @return true if there is a next page, false otherwise | ||
*/ | ||
boolean hasNextPage(); | ||
|
||
/** | ||
* Whether or not this is the first page | ||
* | ||
* @return true if there is a previous page, false otherwise | ||
*/ | ||
boolean hasPreviousPage(); | ||
|
||
/** | ||
* get the encoded cursor of the entity | ||
* | ||
* @param entity the entity | ||
* @return String representation of the cursor of the entity | ||
*/ | ||
String getCursor(T entity); | ||
} |
74 changes: 74 additions & 0 deletions
74
src/main/java/graphql/annotations/connection/PaginatedDataConnectionFetcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/** | ||
* Copyright 2016 Yurii Rashkovskii | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
*/ | ||
package graphql.annotations.connection; | ||
|
||
import graphql.relay.*; | ||
import graphql.schema.DataFetcher; | ||
import graphql.schema.DataFetchingEnvironment; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.Iterator; | ||
import java.util.List; | ||
|
||
/** | ||
* Use this class in {@link GraphQLConnection} to do a real pagination, | ||
* i.e you fetch each time the relevant data, you make the cursors and | ||
* you decide if there are previous or next pages | ||
* <p> | ||
* Note: If you are using the connection, the return type of the associated dataFetcher must implement {@link PaginatedData} | ||
* | ||
* @param <T> the entity type that is paginated | ||
*/ | ||
public class PaginatedDataConnectionFetcher<T> implements ConnectionFetcher<T> { | ||
|
||
private DataFetcher<PaginatedData<T>> paginationDataFetcher; | ||
|
||
public PaginatedDataConnectionFetcher(DataFetcher<PaginatedData<T>> paginationDataFetcher) { | ||
this.paginationDataFetcher = paginationDataFetcher; | ||
} | ||
|
||
@Override | ||
public Connection<T> get(DataFetchingEnvironment environment) { | ||
PaginatedData<T> paginatedData = paginationDataFetcher.get(environment); | ||
if (paginatedData == null) { | ||
return new DefaultConnection<>(Collections.emptyList(), new DefaultPageInfo(null,null,false,false)); | ||
} | ||
List<Edge<T>> edges = buildEdges(paginatedData); | ||
PageInfo pageInfo = getPageInfo(edges, paginatedData); | ||
return new DefaultConnection<>(edges, pageInfo); | ||
} | ||
|
||
private PageInfo getPageInfo(List<Edge<T>> edges, PaginatedData<T> paginatedData) { | ||
ConnectionCursor firstCursor = edges.get(0).getCursor(); | ||
ConnectionCursor lastCursor = edges.get(edges.size() - 1).getCursor(); | ||
return new DefaultPageInfo( | ||
firstCursor, | ||
lastCursor, | ||
paginatedData.hasPreviousPage(), | ||
paginatedData.hasNextPage() | ||
); | ||
} | ||
|
||
private List<Edge<T>> buildEdges(PaginatedData<T> paginatedData) { | ||
Iterator<T> data = paginatedData.iterator(); | ||
List<Edge<T>> edges = new ArrayList<>(); | ||
for (; data.hasNext(); ) { | ||
T entity = data.next(); | ||
edges.add(new DefaultEdge<>(entity, new DefaultConnectionCursor(paginatedData.getCursor(entity)))); | ||
} | ||
return edges; | ||
} | ||
} |
Oops, something went wrong.