Project

General

Profile

Actions

development #23

closed

model Note

Added by Ariel Biton almost 2 years ago. Updated 7 months ago.

Status:
closed
Priority:
NORMAL
Assignee:
-
Target version:
Start date:
06/06/2023
Due date:
% Done:

0%

Estimated time:
Actions #1

Updated by Ariel Biton over 1 year ago

  • Status changed from open to in progress

- GraphQL queries GET_NOTE and GET_NOTES ready in back and front
- GraphQL mutation CREATE_NOTE and DELETE_NOTE ready in back and front
- schema

const typeDefs = gql`
  "Note object" 
  type Note {
    id: ID!
    title: String!
    content: String
  }

  "User object" 
  type User {
    id: ID!
    email: String!
    firstName: String
    lastName: String
    userName: String
    notes: [Note]
  }

  type Query {
    "retrieve all notes" 
    notes: [Note]
    "retrieve a note" 
    note(id: ID!): Note
  }

  type Mutation {
    "create a new note" 
    createNote(title: String!, content: String): Note
    "delete note" 
    deleteNote(id: ID!): Note
  }
`;

Actions #2

Updated by Ariel Biton 7 months ago

  • Status changed from in progress to closed

done

Actions

Also available in: Atom PDF