{"id":19040164,"url":"https://github.com/logisticinfotech/sails-hook-graphql-testproject","last_synced_at":"2026-06-19T03:31:49.566Z","repository":{"id":75295626,"uuid":"196569065","full_name":"logisticinfotech/sails-hook-graphql-testproject","owner":"logisticinfotech","description":"sails hook graphql test project","archived":false,"fork":false,"pushed_at":"2019-07-12T11:51:55.000Z","size":341,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T22:32:36.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/logisticinfotech.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":"2019-07-12T11:38:09.000Z","updated_at":"2020-04-27T15:49:44.000Z","dependencies_parsed_at":"2023-06-06T01:30:15.119Z","dependency_job_id":null,"html_url":"https://github.com/logisticinfotech/sails-hook-graphql-testproject","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/logisticinfotech/sails-hook-graphql-testproject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-graphql-testproject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-graphql-testproject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-graphql-testproject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-graphql-testproject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logisticinfotech","download_url":"https://codeload.github.com/logisticinfotech/sails-hook-graphql-testproject/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logisticinfotech%2Fsails-hook-graphql-testproject/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34516549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-08T22:20:55.087Z","updated_at":"2026-06-19T03:31:49.550Z","avatar_url":"https://github.com/logisticinfotech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sails-hook-graphql-testproject\nsails hook graphql test project\n\nnpm install graphql express-graphql @logisticinfotech/sails-hook-graphql\n\n# Query Examples\n\n## Example 1\n\n{\n    customers(populate: [{type: \"facilitys\"}]){\n        CustomerID,\n        name:Description,\n        facilitys\n    }\n}\n\n\n## Example 2\n\n{\n    users(populate: [{type: \"tweets\"}], limit: 1)\n    {\n        id,\n        myname:name,\n        tweets\n    }\n}\n\n## Example 3\n{\n    users(populate: [{type: \"tweets\",criteria:{limit:2}}], limit: 1)\n    {\n        id,\n        myname:name,\n        tweets\n    }\n}\n\n## Example 4\n{\n    users(populate: [{type: \"tweets\",criteria:{where:{id:20},limit:2}}], limit: 1)\n    {\n        id,\n        myname:name,\n        tweets\n    }\n}\n\n## Example 5 (find specific name )\n{\n  users(where:{name:\"Elijah Homenick\"}){\n    id\n    name\n    username\n\n  }\n}\n\n\n\n## Example 6 (find specific name )\n{\n  users(where:{id: { gt: \"40\", lte: \"45\" }}){\n    id\n    name\n    username\n\n  }\n}\n# You can use associate for get specific data\n\n\n## Example 7 sort asc desc using fields name\n{\n  users(sort: \"name DESC\" ){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 8 skip first 10 item\n{\n  users(skip:10){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 9\n{\n  users(skip:10,limit:2){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 10\n{\n  users(aggregate:[\"count\"],where:{id: { gt: \"40\", lte: \"45\" }}){\n    count\n  }\n}\n\n## Example 11 get sum of specific fields\n{\n  users(aggregate:[\"sum\",\"id\"], where:{id: { gt: \"40\", lte: \"45\" }}){\n   sum:count\n  }\n}\n\n## Example 12 (get average of specific where condition)\n{\n  users(aggregate:[\"average\",\"id\"], where:{id: { gt: \"40\", lte: \"45\" }}){\n   average:count\n  }\n}\n\n## Example 13 (find where name contains specific value)\n{\n  users(where:{name: { contains: \"el\" }}){\n    id\n    name\n    username\n\n  }\n}\n\n# you find more query - language here like startsWith ,endsWith https://sailsjs.com/documentation/concepts/models-and-orm/query-language\n\n## Example 14 (where in and nin also usefull)\n{\n  users(where:{id: { in:[41,43] }}){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 15\n{\n  users(where:{id: { nin:[41,43] }}){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 16\n\n{\n  users(where:{name: { contains: \"el\" },id: { in:[41,43] }}){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 17 Or condition in where case\n{\n  users(where:{or:[ {name: { contains: \"Annabel\" }},{id: { in:[41,43] }}]}){\n    id\n    name\n    username\n\n  }\n}\n\n## Example 18\nmutation{\n  createUser(name:\"test\",username:\"test110\",email:\"test@gmail.com\"){\n    id,\n    username\n  }\n}\n\n## Example 19  (Right now update only using id)\nmutation{\n  updateUser(id:102,name:\"test\"){\n    name\n  }\n}\n\n## Example 20\nmutation{\n  deleteUser(id:102){\n    name\n  }\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogisticinfotech%2Fsails-hook-graphql-testproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogisticinfotech%2Fsails-hook-graphql-testproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogisticinfotech%2Fsails-hook-graphql-testproject/lists"}