Contact Query

Get list of contact

Introduction

Contacts are the company contact that a company user can add in our system. We provides ability to filter the contacts by externalId, email, id and fullSearch(first name and last name). Please make sure the paging option is used to fetch more items.

Contact Query

To query a contacts from Everreal use contacts query

type Query {
  contacts(input: ContactFilterListPaging): [Contact]
}

Schema

type Contact {
  id: String
  externalId: String
  salutation: String
  title: String
  firstName: String
  lastName: String
  email: String
  userId: String
  companyId: String
  phoneNumber: String
  address: ContactAddress
  cellPhoneNumber: String
  birthDate: DateTime
  blacklistReason: String
  companyContactGroupId: String
  gdprAcceptedDate: String
  gdprAcceptedIpAddress: String
  isBlacklisted: String
  responsibleUserId: String
  createdAt: DateTime
  updatedAt: DateTime
  deletedAt: DateTime
}

type ContactAddress {
  streetName: String
  streetNumber: String
  zipCode: String
  city: String
  country: String
}

input ContactFilterListPaging {
  filter: ContactFilter
  paging: GraphPaging
  sort: GraphSorting
}

input ContactFilter {
  id: String
  externalId: String
  email: String
  fullSearch: String
}

Example for contact query

{
    contacts(input: { filter: { email: "test@acme.com"}, paging: {skip: 0, take: 5}}) {
    id
    firstName
    lastName
    salutation
    title
    email
    createdAt
    updatedAt   
  }
}

Last updated