Guide

Below you'll find examples using Graphql with any other language using apollo client.

You can copy paste the code in your graphql playground or open graphify playground to quickly test graphql API.



#User Model

type User {
    email: String!
    gender: GENDER
    id: ID!
    isActive: Boolean!
    lastUpdated: DateTime!
    name: String!
    organization: Organization!
    organizationId: String!
    password: String!
}

#Organization Model

type Organization {
    id: ID!
    name: String!
}

#Todo Model

type TodoModel {
    id: ID!
    isComplete: Boolean!
    task: String!
    user: User!
    userId: String!
}

#Post Model

type Post {
    body: String!
    comment: [Comment!]
    id: ID!
    title: String!
    user: User!
    userId: String!
}

#Comment Model

type Comment {
    body: String!
    id: ID!
    user: User!
    userId: String!
}