This is a slice of the schema I'm creating, lets say Schema A.
...
{
"name":"topicList",
"type":"list",
"label":"topicList",
"required":false,
"listType":"node",
"allow":[
"topic"
],
"elasticsearch":{
"type":"nested"
}
}
...
When I retrieve an object of schema A, topic property is an array of {"uuid": "string"} objects.
Is there a possibility to get the full object(otherwise I need to make an extra query to get metadata from those objects).
I know microschema can do this but the objects that I want to store are objects that are inside Topic Schema.
BR
To fetch references to other nodes within one request use GraphQL.
https://getmesh.io/docs/graphql/#_loading_referenced_fields_of_a_node https://getmesh.io/docs/api/#project__graphql__post
curl --request POST \
--url http://$MESH_HOST:$MESH_PORT/api/v2/$PROJECT_NAME/graphql/ \
--header 'Content-Type: application/json' \
--data '{"query":"YOUR_QUERY_HERE"}'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.