Skip to main content

EmailTemplate

email-template

type EmailTemplate implements Node {
id: ID!
name: String!
type: String!
subject: String!
fields: GQLTJson!
code: String
createdAt: GQLTDate!
updatedAt: GQLTDate!
emails(
after: String
first: Int = 0
before: String
last: Int = 0
orderBy: [EmailOrderBy] = []
where: GQLTQueryEmailWhere
include: [GQLTEmailIncludeObject] = []
): EmailHasManyEmailsList
emailTemplateAttachment(
after: String
first: Int = 0
before: String
last: Int = 0
orderBy: [EmailTemplateAttachmentOrderBy] = []
where: GQLTQueryEmailTemplateAttachmentWhere
include: [GQLTEmailTemplateAttachmentIncludeObject] = []
): EmailTemplateAttachmentHasManyEmailTemplateAttachmentList
}

Fields#

id (ID!)#

The ID of an object

name (String!)#

define the name of the email template

type (String!)#

Type of the email-template. this is a unique value.

subject (String!)#

define the subject of the email

fields (GQLTJson!)#

is a JSON type that have all the fields in the email

code (String)#

defines the mjml equivalent of the email template

createdAt (GQLTDate!)#

updatedAt (GQLTDate!)#

emails (EmailHasManyEmailsList)#

List all the emails under the email template

If provided it will return results after the provided cursor

If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.

If provided it will return results before the provided cursor

If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.

If provided this will sort the results by the supplied column and direction

emailTemplateAttachment (EmailTemplateAttachmentHasManyEmailTemplateAttachmentList)#

List all the email attachments under template

If provided it will return results after the provided cursor

If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.

If provided it will return results before the provided cursor

If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.

If provided this will sort the results by the supplied column and direction

Interfaces#

Node#

An object with an ID