-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
@olragon many thanks for fixing #13
Date start and end are returned now. But there are new problems:
Because type 'struct' was deleted from Schema.php i've get this dump() output if i open /graphql
array:6 [▼
"label" => "CER"
"description" => "Information about the entity, used internally by CER."
"type" => "struct"
"getter callback" => "cer_get_cer_struct"
"computed" => true
"property info" => array:4 [▼
"lineage" => array:5 [▼
"label" => "Kontext"
"description" => "The entity's lineage, represented as a string."
"type" => "text"
"getter callback" => "cer_get_entity_lineage"
"computed" => true
]
"depth" => array:5 [▼
"label" => "Tiefe"
"description" => "How deeply the entity is embedded."
"type" => "integer"
"getter callback" => "cer_get_entity_depth"
"computed" => true
]
"owner" => array:5 [▼
"label" => "Eigentümer"
"description" => "The top-level entity under which this one is embedded."
"type" => "entity"
"getter callback" => "cer_get_entity_owner"
"computed" => true
]
"original" => array:5 [▼
"label" => "Original"
"description" => "The original entity (before update), or the current entity if an update has not occurred."
"type" => "entity"
"getter callback" => "cer_get_entity_original"
"computed" => true
]
]
]
Cannot detect fieldType for cer cer
If i add struct type again, i get a JSON formatted result with debug infos. I can use graphiQL also then. "cer" comes from https://www.drupal.org/project/cer which is used a lot in our project.
Important: There is a problem with text fields now:
query {
fhp_shop_blocking {
id
field_blocking_reason {
value
format
}
field_shop_blocking_dates {
value
value2
}
}
}
Result:
{
"data": {
"fhp_shop_blocking": [
{
"id": "1",
"field_blocking_reason": {
"value": null,
"format": null
},
"field_shop_blocking_dates": {
"value": "2018-08-01 00:00:00",
"value2": "2018-08-25 00:00:00"
}
},
{
"id": "28",
"field_blocking_reason": {
"value": null,
"format": null
},
"field_shop_blocking_dates": {
"value": "2018-07-02 00:00:00",
"value2": "2018-07-25 00:00:00"
}
}
]
}
}
As you can see, the graphiQL autosuggests in query
[...]
field_blocking_reason {
value
format
}
[...]
and they return now
[...]
"field_blocking_reason": {
"value": null,
"format": null
},
[...]
I appreciate your support. Please help us fix the remaining problems soon.
njt1982
Metadata
Metadata
Assignees
Labels
No labels