v15.0.0
#1274
Replies: 1 comment 2 replies
-
|
Hi there, I have one question regarding the removed $server->getHelper()->sendResponse($result);Since |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 implementationDocumentValidatorassert()or schema validationHasSelectionSet::$selectionSetwithHasSelectionSet::getSelectionSet()TypeDefinitionNode::$namewithTypeDefinitionNode::getName()TypeExtensionNode::$namewithTypeExtensionNode::getName()Added
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()__typenameOptimized
foreachover slower functionsarray_map()andUtils::map()Fixed
QueryPlancrash when multiple$fieldNodesare presentQueryPlanwith different optionsarrayorstdClassto 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 formattingiterablein implementations ofPromiseAdapter::all()Removed
OperationParamsmethodgetOriginalInput()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 Helpercategory, use custom error formatting if you still need itType::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\BreakingChangesFinderThis discussion was created from the release v15.0.0.
Beta Was this translation helpful? Give feedback.
All reactions