mutation {
  createUser(input: {
    password: "secret123",
    history: ["login1"],
    tag: "admin",
    email: "test@example.com",
    phone: "555123456",
    collectionTokens: {
      default: "default-token",
      tokens: [{ prefix: "main", token: "abc123" }]
    },
    person: "64f8b2a4e1234567890abcdef"
  }) {
		_id
    password
    tag
    email
    phone
    tag
    collectionTokens {
      default
      tokens {
        prefix
        token
      }
    }
    person
  }
}

query {
  users(limit:1, skip: 0) {
    _id
    uuid
    expiryStarts
    expiryEnds
    isConfirmed
    deleted
    active
    crypUuId
    createdCredentialsToken
    updatedCredentialsToken
    confirmedCredentialsToken
    isNotificationSend
    isEmailSend
    refInt
    refId
    replicationId

    expiresAt
    resetToken
    password
    history
    tag
    email
    phone

    collectionTokens {
      default
      tokens {
        prefix
        token
      }
    }
    createdAt
    updatedAt
  }
}


query TestUsers(
  $skip: Int
  $limit: Int
  $sort: JSON
  $filters: JSON
) {
  users(skip: $skip, limit: $limit, sort: $sort, filters: $filters) {
    _id
    email
    phone
    tag
    createdAt
    person {
      firstName
      lastName
    }
  }
}
{
  "skip": 0,
  "limit": 5,
  "sort": {
    "createdAt": 1
  },
  "filters": {}
}

{
  "skip": 0,
  "limit": 20,
  "sort": { "email": -1 },
  "filters": {
    "email": {
      "$regex": "@gmail.com",
      "$options": "i"
    }
  }
}

{
  "skip": 0,
  "limit": 50,
  "sort": { "tag": 1 },
  "filters": {
    "$or": [
      { "email": { "$regex": "example", "$options": "i" }},
      { "phone": { "$regex": "555", "$options": "i" }}
    ]
  }
}