Skip to content

Instantly share code, notes, and snippets.

@krsnvijay
Last active July 8, 2019 08:28
Show Gist options
  • Save krsnvijay/02209b327049de5f1c2f62c63db8e3f9 to your computer and use it in GitHub Desktop.
Save krsnvijay/02209b327049de5f1c2f62c63db8e3f9 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
}
@krsnvijay
Copy link
Author

Final Revision will be deployed to aws-appsync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment