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.
-
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 implementationAdded
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()
Optimized
foreach
over slower functionsarray_map()
andUtils::map()
Fixed
array
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 formattingRemoved
Type::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
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
This discussion was created from the release v15.0.0-alpha.1.
Beta Was this translation helpful? Give feedback.
All reactions