Closed marol1210 closed 2 years ago
@marol1210 Have you manage to fixed it?
@marol1210 Have you manage to fixed it?
Yes , despite of fixed , it's not smart. I just modify name
value of $attributes in which every AvoRed\\Framework\\Graphql\\Types
classes to same as key of config/avored.php TYPES field.
@marol1210 Have you manage to fixed it?
alternative , just use type name of TYPE from graphql self whatever others. because , under hood, the name is defined by graphql Rebing\GraphQL\GraphQL::addTypes
. so just use.
graphql introspection for exmaple:
{
__schema{
types{
name
description
}
}
}
after
{
"data": {
"__schema": {
"types": [
{
"name": "Product",
"description": "A type"
},
{
"name": "Category",
"description": "A type"
}
....
}
Can you please do a pull request with your fixed. @marol1210
Describe the bug avored's graphql api can't find graphql offset of TYPES which config in config/avored.php.
To Reproduce Steps to reproduce the behavior:
Screenshots
Additional context
property
attributes
of class CategoryType isand there is space in property
attributes
of class ShippingType $attributes = [ 'name' => 'Shipping Type', 'description' => 'A type' ]so under my local environment , avored's config about grahpql's TYPES which key is lowercase , but capitalize in property attributes