Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Po e paraqes se qfar operacione jane te mundshme ne back-end qe e kom implementu per front-end'in.
- Queries dhe mutations: http://prntscr.com/nd7aio / http://prntscr.com/nd7ap7 / http://prntscr.com/nd7ax0
- Detajisht qka kerkon dhe kthen qdo resolver:
- - graphql.schema
- enum AccountType {
- MEMBER
- ADMIN
- }
- type Aggregate {
- count: Int!
- }
- type App {
- id: ID!
- createdBy: User!
- appCategory: AppCategory!
- appVersions: [AppVersion!]!
- stories(first: Int): [Story!]!
- name: String!
- description: String
- company: String!
- logo: File!
- platform: Platform!
- }
- type AppCategory {
- id: ID!
- name: String!
- }
- input AppFilterInput {
- first: Int
- skip: Int
- appName_contains: String
- appCategory: String
- storyCategories: [ID!]
- storyElements: [ID!]
- orderBy: ORDER_BY
- }
- type AppVersion {
- id: ID!
- name: String!
- }
- input AppVersionLinkInput {
- appVersion: ID!
- type: LinkType!
- }
- type AuthData {
- userId: ID!
- token: String!
- expiresIn: Int!
- }
- type BasicInfo {
- success: Boolean!
- error: String
- }
- enum CONNECTION_TYPE {
- usersConnection
- appCategoriesConnection
- storyCategoriesConnection
- storyElementsConnection
- }
- input Dict {
- key: String
- value_str: String
- value_int: Int
- }
- type File {
- id: ID!
- filename: String!
- mimetype: String!
- encoding: String!
- url: String!
- }
- input FileInput {
- base64: String!
- mimetype: String!
- }
- type Job {
- id: ID!
- name: String!
- }
- type JSON_OBJECT {
- repr: String!
- }
- type Library {
- id: ID!
- createdBy: User!
- stories: [Story!]!
- name: String!
- }
- input LibraryFilterInput {
- storyCategories: [String!]
- storyElements: [String!]
- }
- enum LinkType {
- connect
- disconnect
- }
- type Mutation {
- login(email: String!, password: String!): AuthData!
- signUp(
- full_name: String!
- email: String!
- password: String!
- job: ID!
- profile_photo: FileInput
- ): AuthData!
- verifyForgotPassword(token: String!): TokenValidation!
- resetPassword(
- token: String!
- new_password: String!
- repeat_new_password: String!
- ): BasicInfo!
- forgetPassword(email: String!): BasicInfo!
- editProfile(
- full_name: String
- job: ID
- email: String
- password: String
- profile_photo: FileInput
- ): User!
- createApp(
- id: ID
- name: String!
- description: String!
- platform: Platform!
- logo: FileInput!
- appVersion: String!
- appCategory: String!
- company: String!
- ): App!
- editApp(
- id: ID!
- name: String
- description: String
- platform: Platform
- logo: FileInput
- appVersions: [AppVersionLinkInput!]
- appCategory: ID
- company: String
- ): App!
- createAppCategory(name: String!): AppCategory!
- editAppCategory(id: ID!, name: String!): AppCategory!
- deleteAppCategory(id: ID!): AppCategory!
- createAppVersion(name: String!): AppVersion!
- appVersionToApp(app: ID!, appVersion: ID!, type: LinkType!): App!
- appVersionToStory(story: ID!, appVersion: ID!, type: LinkType!): Story!
- editAppVersion(id: ID!, name: String!): AppVersion
- deleteAppVersion(id: ID!): AppVersion!
- uploadFile(file: FileInput!): File!
- createLibrary(name: String!): Library!
- editLibrary(id: ID!, name: String, stories: [StoryLinkType!]): Library!
- createStory(
- app: ID!
- video: FileInput!
- thumbnail: FileInput
- appVersions: [ID!]!
- storyCategories: [ID!]!
- storyElements: [ID!]!
- ): Story!
- editStory(
- id: ID!
- app: ID
- video: FileInput
- thumbnail: FileInput
- appVersions: [AppVersionLinkInput!]
- storyCategories: [StoryCategoryLinkType!]
- storyElements: [StoryElementLinkType!]
- ): Story!
- storyToLibrary(story: ID!, library: ID!, type: LinkType!): Library!
- storyToApp(story: ID!, app: ID!, type: LinkType!): App!
- createStoryCategory(name: String!): StoryCategory!
- storyCategoryToStory(storyCategory: ID!, story: ID!, type: LinkType!): Story!
- editStoryCategory(id: ID!, name: String!): StoryCategory!
- deleteStoryCategory(id: ID!): StoryCategory!
- createStoryElement(name: String!): StoryElement!
- storyElementToStory(story: ID!, storyElement: ID!, type: LinkType!): Story!
- editStoryElement(id: ID!, name: String!): StoryElement!
- deleteStoryElement(id: ID!): StoryElement!
- createJob(name: String!): Job!
- editJob(id: ID!, name: String!): Job!
- deleteJob(id: ID!): Job!
- }
- type ObjectConnection {
- pageInfo: PageInfo!
- nodes: JSON_OBJECT!
- aggregate: Aggregate!
- }
- enum ORDER_BY {
- createdAt_ASC
- createdAt_DESC
- }
- type PageInfo {
- hasNextPage: Boolean!
- hasPreviousPage: Boolean!
- }
- enum Platform {
- IOS
- ANDROID
- }
- type Query {
- getLoggedInUser: User
- app(id: ID!, stories_first: Int): App
- apps(appFilterInput: AppFilterInput): [App!]!
- appVersions: [AppVersion!]!
- appCategories: [AppCategory!]!
- getObjectConnection(
- connection_type: CONNECTION_TYPE!
- fields: [String!]!
- filterBy: [Dict!]
- where: [Dict!]
- ): ObjectConnection!
- story(id: ID!): Story
- stories(storiesFilterInput: StoriesFilterInput): [Story!]!
- storyCategories: [StoryCategory!]!
- storyElements: [StoryElement!]!
- library(id: ID!): Library
- libraries(libraryFilterInput: LibraryFilterInput): [Library!]!
- jobs: [Job!]!
- users(userFilterInput: UserFilterInput): [User!]!
- countApps: Int!
- countStories: Int!
- countUsers: Int!
- }
- input StoriesFilterInput {
- first: Int
- skip: Int
- app: ID
- inLibrary: ID
- storyName_contains: String
- appCategory: ID
- storyCategories: [ID!]
- storyElements: [ID!]
- appVersions: [ID!]
- }
- type Story {
- id: ID!
- app: App!
- appVersions: [AppVersion!]!
- storyCategories: [StoryCategory!]!
- storyElements: [StoryElement!]!
- libraries: [Library!]!
- video: Video!
- thumbnail: File!
- }
- type StoryCategory {
- id: ID!
- name: String!
- }
- input StoryCategoryLinkType {
- storyCategory: ID!
- type: LinkType!
- }
- type StoryElement {
- id: ID!
- name: String!
- }
- input StoryElementLinkType {
- storyElement: ID!
- type: LinkType!
- }
- input StoryLinkType {
- story: ID!
- type: LinkType!
- }
- type TokenValidation {
- valid: Boolean!
- }
- type User {
- id: ID!
- email: String!
- password: String!
- full_name: String!
- job: Job!
- role: AccountType!
- profile_photo: File
- apps: [App!]!
- libraries: [Library!]!
- }
- input UserFilterInput {
- first: Int
- skip: Int
- full_name_contains: String
- }
- type Video {
- id: ID!
- file: File!
- }
Add Comment
Please, Sign In to add comment