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
-
Changed
Error
when failing to serialize an Enum typeType
and its subclassesSerializationError
over client safeError
when failing to serialize leaf typesextensions
keyRequestError
with useful message when clients provide an invalid JSON bodyBlockString
from namespaceGraphQL\Utils
toGraphQL\Language
GraphQL::getStandardDirectives()
,GraphQL::getStandardTypes()
andGraphQL::getStandardValidationRules()
FieldDefinition
toQueryComplexity
Type
directly without an intermediary callablenull
ServerConfig
optionpersistentQueryLoader
topersistedQueryLoader
EnumType::parseValue()
andEnumType::parseLiteral()
PromiseAdapter::createRejected()
to require\Throwable
NamedType
out ofType
:$name
,$description
,$config
,isBuiltInType()
,assertValid()
Node::toArray()
Directive::$config['args']
use the same definition style asFieldDefinition::$config['args']
FieldArgument
toArgument
QueryPlan
options from['group-implementor-fields']
to['groupImplementorFields' => true]
inResolveInfo::lookAhead()
PromiseAdapter::convertThenable()
before calling->then()
on themJSON_THROW_ON_ERROR
injson_encode()
assert()
PromiseAdapter::all()
acceptsiterable
Introspection::fromSchema()
returns no dataASTValidationContext
to interfaceValidationContext
Utils::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()
StandardServer
graphql-js
reference implementationDocumentValidator
assert()
or schema validationHasSelectionSet::$selectionSet
withHasSelectionSet::getSelectionSet()
TypeDefinitionNode::$name
withTypeDefinitionNode::getName()
TypeExtensionNode::$name
withTypeExtensionNode::getName()
Added
AST::concatAST()
utilityUniqueEnumValueNames
UniqueOperationTypes
(Extract check for unique operation types into separate rule #995)DocumentValidator::removeRule()
Node
implementJsonSerializable
UniqueTypeNames
(Extract check for unique type names into separate rule #998)KnownTypeNames
rule (Add support of SDL toKnownTypeNames
validation rule #999)UniqueArgumentDefinitionNames
(Add unique argument names validation rule #1136)parseValue
config option to InputObjectType to parse input value to custom value objectsortTypes
to haveSchemaPrinter
order types alphabeticallyEnumType
from PHP enumTypeInfo::getParentTypeStack()
andTypeInfo::getFieldDefStack()
__typename
Optimized
foreach
over slower functionsarray_map()
andUtils::map()
Fixed
QueryPlan
crash when multiple$fieldNodes
are presentQueryPlan
with different optionsarray
orstdClass
to an input objectnull
parent of list inValuesOfCorrectType::getVisitor
query
andqueryId
, ignorequeryId
in that caseSchemaExtender::extend()
NodeList
inNode::cloneDeep()
Schema::getType()
on a schema built from SDL returnsnull
for unknown types (Fix schema built from SDL to return null for unknown types #1068)QueryComplexity
ruleFormattedError::addDebugEntries()
twice when using default error formattingiterable
in implementations ofPromiseAdapter::all()
Removed
OperationParams
methodgetOriginalInput()
in favor of public property$originalInput
OperationParams
methodisReadOnly()
in favor of public property$readOnly
Utils::withErrorHandling()
TypeComparators::doTypesOverlap()
DocumentValidator::isError()
DocumentValidator::append()
Utils::getVariableType()
in favor ofUtils::printSafe()
isDeprecated
in field definition configWrappingType::getWrappedType()
argument$recurse
in favor ofWrappingType::getInnermostType()
Type::assertType()
ListOfType::$ofType
,ListOfType::getOfType()
andNonNull::getOfType()
commentDescriptions
fromBuildSchema::buildAST()
,BuildSchema::build()
andPrinter::doPrint()
$options
fromASTDefinitionBuilder
FieldDefinition::create()
in favor ofnew FieldDefinition()
GraphQL\Exception\InvalidArgument
Utils::find()
,Utils::every()
andUtils::invariant()
bool $exitWhenDone
fromStandardServer::send500Error()
andStandardServer::handleRequest()
Schema::getAstNode()
in favor ofSchema::$astNode
Schema
optiontypes
, useType::overrideStandardTypes()
GraphQL\Utils\TypeInfo::typeFromAST()
, useGraphQL\Utils\AST::typeFromAST()
StandardServer::send500Error()
, handle non-GraphQL errors yourselfStandardServer::getHelper()
, usenew Helper
category
, use custom error formatting if you still need itType::getInternalTypes()
GraphQL::execute()
GraphQL::executeAndReturnResult()
FormattedError::create()
andFormattedError::createFromPHPError()
GraphQL::setPromiseAdapter()
AST::getOperation()
BreakingChangesFinder
DocumentValidator::isValidLiteralValue()
Error::formatError()
andError::toSerializableArray()
GraphQL::getInternalDirectives()
Schema::isPossibleType()
TypeInfo
Values::valueFromAST()
andValues::isValidPHPValue()
InputObjectField::$type
FieldDefinition::$type
GraphQL\Validator\Rules\AbstractQuerySecurity
, useGraphQL\Validator\Rules\QuerySecurityRule
GraphQL\Validator\Rules\AbstractValidationRule
, useGraphQL\Validator\Rules\ValidationRule
GraphQL\Utils\FindBreakingChanges
, useGraphQL\Utils\BreakingChangesFinder
This discussion was created from the release v15.0.0.
Beta Was this translation helpful? Give feedback.
All reactions