Skip to content

Instantly share code, notes, and snippets.

@xlogix
Forked from krsnvijay/schema.graphql
Created July 8, 2019 08:28
Show Gist options
  • Save xlogix/db33d9ca7c939acb94cb1c4a87cffeb0 to your computer and use it in GitHub Desktop.
Save xlogix/db33d9ca7c939acb94cb1c4a87cffeb0 to your computer and use it in GitHub Desktop.
RLE Suite Graphql Schema
type User @model {
id: ID!
username: String!
firstName: String!
lastName: String!
profilePic: String!
email: String!
bio: String
about: String
tags: [String!]
coreSkills: [String!]
github: String
linkedIn: String
facebook: String
learningPaths: [LearningPath]!
@connection(name: "userLearningPaths")
}
type FootStep @model {
id: ID!
title: String!
description: String!
resourceType: String!
resourceURL: String!
level:Level
tags: [String!]!
learningPath: LearningPath
@connection(name: "learningPathfootSteps")
}
type LearningPath @model {
id: ID!
title: String!
description: String!
footsteps: [FootStep!]!
@connection(name: "learningPathfootSteps")
author: User!
@connection(name: "userLearningPaths")
}
enum Level{
BEGINNER
INTERMEDIATE
ADVANCED
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment