messages
List a users messages
GraphQL Schema
extend type query {
"""List a users messages"""
messages(userId: ID!): [Message!]!
}
Arguments
Name | Type | Description |
---|---|---|
userId | ID! | Unique ID of the user |
Response Shape
This query returns [Message!]!
Name | Type | Description |
---|---|---|
id | ID! | UUID of the message |
title | String! | Message title copy |
subtitle | String | Message subtitle copy |
link | String | Url for message content |
read | Boolean! | Indicates whether a message has been read, false by default |
dateReceived | Date! | Date message was created |