{"id":13621905,"url":"https://github.com/matheustanaka/challengeGraphql","last_synced_at":"2025-04-15T05:32:47.800Z","repository":{"id":65053295,"uuid":"373694160","full_name":"matheustanaka/challengeGraphql","owner":"matheustanaka","description":"CRUD using Graphql, Apollo server and Mongodb.","archived":false,"fork":false,"pushed_at":"2024-10-16T22:37:24.000Z","size":859,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T09:40:48.912Z","etag":null,"topics":["apollo-server","database","graphql","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matheustanaka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-04T02:07:47.000Z","updated_at":"2024-10-16T22:37:28.000Z","dependencies_parsed_at":"2024-01-09T03:38:50.474Z","dependency_job_id":"0e931517-4563-46d5-bb7c-86fde191c5c2","html_url":"https://github.com/matheustanaka/challengeGraphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheustanaka%2FchallengeGraphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheustanaka%2FchallengeGraphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheustanaka%2FchallengeGraphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheustanaka%2FchallengeGraphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheustanaka","download_url":"https://codeload.github.com/matheustanaka/challengeGraphql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249015898,"owners_count":21198824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo-server","database","graphql","mongodb","nodejs"],"created_at":"2024-08-01T21:01:11.874Z","updated_at":"2025-04-15T05:32:47.504Z","avatar_url":"https://github.com/matheustanaka.png","language":"JavaScript","readme":"# Challenge Graphql\n\nCRUD using graphql, apollo server and mongodb.\n\n## Getting Started\n\n---\n\n    # MongoDB\n    - You have to create a database or just use your database in Docker (only MongoDB).\n\n    # install dependencies\n    $ yarn install\n\n    # start project\n    $ yarn dev\n\n    # see graphql interface on localhost link\n    http://localhost:4001/graphql\n\n## Queries\n\n---\n\n- Create User\n\n        mutation {\n            createUser(data: {\n                firstName: \"Matheus\",\n                lastName: \"Tanaka\",\n                email: \" matheus@gmail.com\"\n                active: true\n            }) {\n                _id\n                firstName\n                lastName\n                email\n            }\n        }\n\n- Query User\n\n        query {\n            users {\n                _id\n                firstName\n                lastName\n                fullName\n                email\n                active\n            }\n        }\n\n- Delete User\n\n        mutation{\n            deleteUser(id: \"60b9753dcf587036e0008644\")\n        }\n\n- Update User\n\n        mutation {\n            updateUser (id: \"60b9753dcf587036e0008644\", data: {\n                firstName: \"Matheus3333\",\n                lastName: \"Tanaka\",\n                email: \"matheus@gmail.com\"\n                active: true\n            }) {\n                _id\n                firstName\n                lastName\n                email\n            }\n        }\n\n* Create Post\n\n        mutation {\n            createPost(data:{\n                title: \"Testing 2 other poster\",\n                content: \"testing\",\n                author: \"60b9753dcf587036e0008644\"\n            }) {\n                _id\n                title\n                content\n                author{\n                fullName\n                _id\n                }\n            }\n        }\n\n* Query Post\n\n        query {\n            posts {\n                _id\n                title\n                content\n                author {\n                fullName\n                }\n            }\n        }\n\n* Delete Post\n\n        mutation {\n            deletePost(id: \"60b97f8694a07035382d075d\")\n        }\n\n* Update Post\n\n        mutation {\n            updatePost(id: \"60b97ff238ad2b1444c36f97\", data:{\n                title: \"Updating my second post\",\n                content: \"testing\",\n                author: \"60b9753dcf587036e0008644\"\n            }) {\n                _id\n                title\n                content\n                author{\n                _id\n                fullName\n                }\n            }\n        }\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheustanaka%2FchallengeGraphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheustanaka%2FchallengeGraphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheustanaka%2FchallengeGraphql/lists"}