Skip to content

How to return multiple errors without data? #1046

Answered by smyrick
kamilgregorczyk asked this question in Q&A
Discussion options

You must be logged in to vote

@kamilgregorczyk Try not setting data at all

DataFetcherResult.newResult<LoginResult>()
    .error(
        newErrorException()
            .message("test message")
            .build()
    ).build()

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@kamilgregorczyk
Comment options

@dariuszkuc
Comment options

@kamilgregorczyk
Comment options

Comment options

You must be logged in to vote
9 replies
@kamilgregorczyk
Comment options

@smyrick
Comment options

@kamilgregorczyk
Comment options

@smyrick
Comment options

@kamilgregorczyk
Comment options

Answer selected by smyrick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants