Code Monkey home page Code Monkey logo

apollogram-server's Introduction



Project to practice and learn GraphQL concepts


Demo ๐Ÿ‘‰ https://graphql-timeline-api.herokuapp.com/playground

What are we using?

  • Apollo Server
  • GraphQL
  • MongoDB with Mongoose

Getting Started

# clone repo
$ git clone https://github.com/gabrielferreiraa/timeline-graphql-api.git
$ cd timeline-graphql-api

# install dependencies
$ yarn

# start project
$ yarn start

See graphql interface on localhost link: http://localhost:9000/playground


TODO ๐Ÿ“

  • UpdatePost - mutation
  • DeletePost - mutation
  • DeleteUser - mutation
  • getPostById - query
  • GraphQL improviments
  • add tests

Queries ๐Ÿ”Ž

Simple documentation to see query structures

getAllUsers

query {
    getAllUsers {
        id
        name
        email
    }
}

getUserByEmail

query {
    getUserByEmail(
        email: "[email protected]"
    ) {
        id
        name
        email
    }
}

getAllPosts

query {
    getAllPosts {
        id
        title
        content
        user {
            name
            email
        }
    }
}

Mutations โœ๏ธ

Simple documentation to see mutation structures

Auth

mutation {
    Auth(
        email: "[email protected]"
        password: "1234"
    ) {
        token
        error
    }
}

CreateUser

mutation {
    CreateUser(
        name: "Raul Gil",
        email: "[email protected]",
        password: "1234"
    ) {
        id
        name
        email
    }
}

UpdateUser

mutation {
    UpdateUser(
        name: "Raul Gil - Edited",
        email: "[email protected]"
    ) {
        name
        email
    }
}

CreatePost

mutation {
    CreatePost(
        title: "Post Title"
        content: "Post Content"
    ) {
        title
        content
        user {
            name
            email
        }
    }
}

License

MIT

apollogram-server's People

Contributors

dependabot[bot] avatar gabrielferreiraa avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apollogram-server's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency nodemon to v2.0.22
  • chore(deps): update dependency @types/mongoose to v5.11.97
  • chore(deps): update dependency @types/node to v14.18.63
  • chore(deps): update dependency eslint to v7.32.0
  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update graphqlcodegenerator monorepo (@graphql-codegen/cli, @graphql-codegen/typescript-resolvers)
  • chore(deps): update typescript-eslint monorepo to v4.33.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency bcrypt to v5.1.1
  • fix(deps): update dependency dotenv to v8.6.0
  • fix(deps): update dependency graphql to v15.8.0
  • chore(deps): update dependency @types/jsonwebtoken to v9
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency nodemon to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency dotenv to v16
  • fix(deps): update dependency graphql to v16
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • apollo-server ^2.19.0
  • bcrypt ^5.0.0
  • dotenv ^8.2.0
  • graphql ^15.4.0
  • jsonwebtoken ^8.5.1
  • lodash.merge ^4.6.2
  • mongoose ^5.10.6
  • @graphql-codegen/cli ^1.19.4
  • @graphql-codegen/typescript-resolvers ^1.18.0
  • @types/bcrypt ^3.0.0
  • @types/graphql ^14.5.0
  • @types/jsonwebtoken ^8.5.0
  • @types/lodash.merge ^4.6.6
  • @types/mongoose ^5.10.2
  • @types/node ^14.14.12
  • @typescript-eslint/eslint-plugin ^4.9.1
  • @typescript-eslint/parser ^4.9.1
  • eslint ^7.15.0
  • graphql-tools ^7.0.2
  • nodemon ^2.0.6
  • ts-node ^9.1.1
  • typescript ^4.1.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.