romshark / dgraph_graphql_go

A GraphQL + Dgraph + Go + HTTP based backend service demo.
MIT License
50 stars 15 forks source link

No author data on query posts provided #18

Closed DanielSharkov closed 5 years ago

DanielSharkov commented 5 years ago

Query

query {
    posts {
        id
        author {
            id
            displayName
        }
        creation
        title
        contents
        reactions {
            ...
        }
    }
}

Result

[
    {
        id: '8917d1df651e4327ac38b8cae8b364c9',
        title: 'Simple title',
        contents: 'Hi,\nThis is my post.',
        creation: '2019-05-20T21:36:15.353282+02:00',
        author: {
            id: '',
            displayName: '',
        },
    }
    ...
]