@JatinDevDG
using DQL mutation the resolution breaks, tested today on v20.11-rc5
DQL Mutation
{
set {
<0x01> <Generic.names> "xyz" .
<0x01> <Meta.id> "abc" .
<0x01> <Movie.description> "dgraph" .
}
}
DQL Query;
{
res(func:has(Meta.id)) {
Meta.id
Generic.names
Movie.description
}
}
DQL Response:
{
"data": {
"res": [
{
"Meta.id": "abc",
"Generic.names": [
"xyz"
],
"Movie.description": "dgraph"
}
]
},
"extensions": {
"server_latency": {
"parsing_ns": 46300,
"processing_ns": 317000,
"encoding_ns": 40400,
"total_ns": 446700
},
"txn": {
"start_ts": 24
},
"metrics": {
"num_uids": {
"Generic.names": 1,
"Meta.id": 1,
"Movie.description": 1,
"_total": 3
}
}
}
}
GraphQL query:
query {
getMeta(id:"abc") {
id
... on Generic {
names
}
}
}
GraphQL Rsponse:
{
"data": {
"getMeta": null
},
"extensions": {
"tracing": {
"version": 1,
"startTime": "2020-12-15T15:59:49.9269379Z",
"endTime": "2020-12-15T15:59:49.9286073Z",
"duration": 1669500,
"execution": {
"resolvers": [
{
"path": [
"getMeta"
],
"parentType": "Query",
"fieldName": "getMeta",
"returnType": "Meta",
"startOffset": 113600,
"duration": 1547400,
"dgraph": [
{
"label": "query",
"startOffset": 186800,
"duration": 1461600
}
]
}
]
}
}
}
}
Really hope it is a bug and not a design decision 