Replies: 2 comments 7 replies
-
|
Is #830 mentioned? (I wasn't able to locate it in the changelog). I noticed a lot of my tests "break" because the |
Beta Was this translation helpful? Give feedback.
-
|
I see no replacement / ability anymore to retrieve the values for Is this intentional? graphql-laravel allows configuring them and I used the getters in the test to ensure that the config was applied correctly. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Changed
Errorwhen failing to serialize an Enum typeTypeand its subclassesSerializationErrorover client safeErrorwhen failing to serialize leaf typesextensionskeyRequestErrorwith useful message when clients provide an invalid JSON bodyBlockStringfrom namespaceGraphQL\UtilstoGraphQL\LanguageGraphQL::getStandardDirectives(),GraphQL::getStandardTypes()andGraphQL::getStandardValidationRules()FieldDefinitiontoQueryComplexityTypedirectly without an intermediary callablenullServerConfigoptionpersistentQueryLoadertopersistedQueryLoaderEnumType::parseValue()andEnumType::parseLiteral()PromiseAdapter::createRejected()to require\ThrowableNamedTypeout ofType:$name,$description,$config,isBuiltInType(),assertValid()Node::toArray()Directive::$config['args']use the same definition style asFieldDefinition::$config['args']FieldArgumenttoArgumentQueryPlanoptions from['group-implementor-fields']to['groupImplementorFields' => true]inResolveInfo::lookAhead()PromiseAdapter::convertThenable()before calling->then()on themJSON_THROW_ON_ERRORinjson_encode()assert()PromiseAdapter::all()acceptsiterableIntrospection::fromSchema()returns no dataASTValidationContextto interfaceValidationContextUtils::suggestionList()with the reference implementation (AlignUtils::suggestionList()with the reference implementation #1075)GraphQL\Utils\AST::typeFromAST()now needs a type loader callable instead of the SchemaStandardServer"instead of"""for single line descriptionsHelper::emitResponse()private, useHelper::sendResponse()StandardServergraphql-jsreference implementationAdded
AST::concatAST()utilityUniqueEnumValueNamesUniqueOperationTypes(Extract check for unique operation types into separate rule #995)DocumentValidator::removeRule()NodeimplementJsonSerializableUniqueTypeNames(Extract check for unique type names into separate rule #998)KnownTypeNamesrule (Add support of SDL toKnownTypeNamesvalidation rule #999)UniqueArgumentDefinitionNames(Add unique argument names validation rule #1136)parseValueconfig option to InputObjectType to parse input value to custom value objectsortTypesto haveSchemaPrinterorder types alphabeticallyEnumTypefrom PHP enumTypeInfo::getParentTypeStack()andTypeInfo::getFieldDefStack()Optimized
foreachover slower functionsarray_map()andUtils::map()Fixed
arrayorstdClassto an input objectnullparent of list inValuesOfCorrectType::getVisitorqueryandqueryId, ignorequeryIdin that caseSchemaExtender::extend()NodeListinNode::cloneDeep()Schema::getType()on a schema built from SDL returnsnullfor unknown types (Fix schema built from SDL to return null for unknown types #1068)QueryComplexityruleFormattedError::addDebugEntries()twice when using default error formattingRemoved
Type::getInternalTypes()GraphQL::execute()GraphQL::executeAndReturnResult()FormattedError::create()andFormattedError::createFromPHPError()GraphQL::setPromiseAdapter()AST::getOperation()BreakingChangesFinderDocumentValidator::isValidLiteralValue()Error::formatError()andError::toSerializableArray()GraphQL::getInternalDirectives()Schema::isPossibleType()TypeInfoValues::valueFromAST()andValues::isValidPHPValue()InputObjectField::$typeFieldDefinition::$typeGraphQL\Validator\Rules\AbstractQuerySecurity, useGraphQL\Validator\Rules\QuerySecurityRuleGraphQL\Validator\Rules\AbstractValidationRule, useGraphQL\Validator\Rules\ValidationRuleGraphQL\Utils\FindBreakingChanges, useGraphQL\Utils\BreakingChangesFinderOperationParamsmethodgetOriginalInput()in favor of public property$originalInputOperationParamsmethodisReadOnly()in favor of public property$readOnlyUtils::withErrorHandling()TypeComparators::doTypesOverlap()DocumentValidator::isError()DocumentValidator::append()Utils::getVariableType()in favor ofUtils::printSafe()isDeprecatedin field definition configWrappingType::getWrappedType()argument$recursein favor ofWrappingType::getInnermostType()Type::assertType()ListOfType::$ofType,ListOfType::getOfType()andNonNull::getOfType()commentDescriptionsfromBuildSchema::buildAST(),BuildSchema::build()andPrinter::doPrint()$optionsfromASTDefinitionBuilderFieldDefinition::create()in favor ofnew FieldDefinition()GraphQL\Exception\InvalidArgumentUtils::find(),Utils::every()andUtils::invariant()bool $exitWhenDonefromStandardServer::send500Error()andStandardServer::handleRequest()Schema::getAstNode()in favor ofSchema::$astNodeSchemaoptiontypes, useType::overrideStandardTypes()GraphQL\Utils\TypeInfo::typeFromAST(), useGraphQL\Utils\AST::typeFromAST()StandardServer::send500Error(), handle non-GraphQL errors yourselfStandardServer::getHelper(), usenew HelperThis discussion was created from the release v15.0.0-alpha.1.
Beta Was this translation helpful? Give feedback.
All reactions