List of all contacts
{
contacts(token:String!) {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
List of all users
{
users {
id
username
name
}
}
List of blocked users
{
blockedUsers(token:String!) {
id
username
email
number
}
}
Get a specific card that is owned, authored, or connected
{
card(token:String!, id:ID!) {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
List of all orphan cards authored
{
authoredCards(token:String!) {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
List of one's own cards
{
ownedCards(token:String!) {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
List of all logs associated with a card
{
logs(token:String!, cardId:ID!) {
id
user {
id
username
name
}
contact {
id
username
name
}
card {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
date
text
}
}
Login
mutation {
login(user: {username:String!, password:String!}!) {
user {
id
username
name
}
token
}
}
Create New User Note: Will validate email and number.
mutation {
createUser(user: {username:String!, password:String!}!,
email:String!, name:String!) {
token
user{
id
username
name
email
}
}
}
Update User
mutation {
updateUser(token: String!, username: String, name:String, password:String, email:String){
id
username
name
}
}
Delete User
mutation {
destroyUser(token:String!){
message
}
}
Block User
mutation {
blockUser(token:String!, userId:ID!) {
id
user {
id
username
name
}
contact {
id
username
name
}
card {
id
}
}
}
Create New Card
Note: If an orphaned card, will automatically create a connection as well. Will validate email and number.
mutation {
createCard(token:String!, owned:Boolean!, cardName:String!, displayName:String, name:String!, business_name: String,
number:String, email:String, address: {address1:String!, address2:String, city: String!,
state:String!, postalCode:String!}, twitter:String, facebook:String, linkedIn:String,
instagram:String) {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
Update Card
mutation {
updateCard(token:String!, id: ID!, cardName: String, displayName:String, name:String,
number:String,address: {address1: String, address2: String, city: String, state: String, postal_code: String}, twitter:String, facebook:String, linkedIn:String,
instagram:String) {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
Delete Card
mutation {
destroyCard(token:String!, id:ID!){
message
}
}
Create Connection
mutation {
createConnection(token:String!, cardId:ID!) {
id
user {
id
username
name
}
contact {
id
username
name
}
card {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
}
Update Connection
mutation {
updateConnection(token:String!, id:ID!, cardId:ID!) {
id
user {
id
username
name
}
contact {
id
username
name
}
card {
id
user {
id
username
name
}
author {
id
username
name
}
name
displayName
personName
businessName
address {
address1
address2
city
state
postalCode
}
number
email
birthDate
twitter
linkedIn
facebook
instagram
verified
}
}
}
Delete Connection
mutation {
destroyConnection(token: String!, id: ID!){
message
}
}
Create Log
mutation {
createLog(token: String!, id: ID!, date: String!, text: String!) {
id
}
}
Update Log
mutation {
updateLog(token: String!, id: ID!, date: String!, text: String!) {
id
}
}
Delete Log
mutation {
updateLog(token: String!, id: ID!) {
id
}
}