{"id":25880164,"url":"https://github.com/danielmackay/dotnet-clean-architecture-graphql","last_synced_at":"2025-03-02T13:31:00.320Z","repository":{"id":71461423,"uuid":"601120182","full_name":"danielmackay/dotnet-clean-architecture-graphql","owner":"danielmackay","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-01T06:06:32.000Z","size":383,"stargazers_count":7,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-10T05:33:40.600Z","etag":null,"topics":["clean-architecture","graphql"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielmackay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-13T12:13:09.000Z","updated_at":"2024-05-23T21:41:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e3d81a4-7658-4742-b6dd-1ba24fb40547","html_url":"https://github.com/danielmackay/dotnet-clean-architecture-graphql","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/danielmackay%2Fdotnet-clean-architecture-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-clean-architecture-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-clean-architecture-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-clean-architecture-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmackay","download_url":"https://codeload.github.com/danielmackay/dotnet-clean-architecture-graphql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241512996,"owners_count":19974670,"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":["clean-architecture","graphql"],"created_at":"2025-03-02T13:30:59.778Z","updated_at":"2025-03-02T13:31:00.312Z","avatar_url":"https://github.com/danielmackay.png","language":"C#","funding_links":[],"categories":["Reference Architectures"],"sub_categories":["API"],"readme":"# dotnet-clean-architecture-graphql\n\n## Introduction\n\nThis project is an example implementation of Clean Architecture principles using GraphQL. The goal is to demonstrate how Clean Architecture can be used to create a scalable and maintainable application with a flexible and efficient GraphQL API.\n\n## Features\n\n- Queries\n  - Paging\n  - Sorting\n  - Filtering\n  - Projections\n- Mutations\n  - Create\n  - Update\n  - Delete\n  - Fluent Validation\n\n## Frontend\n\n### Updating the GraphQL Schema\n\n```ps1\ndotnet graphql download https://localhost:44339/graphql/\n```\n\n## Key Design Decisions\n\n### Create ObjectTypes via Code-First patterns\n\nUse Hot Chocolate 'Code-First' patterns to provide a wrapper around the domain objects and avoid exposing DB objects directly to the consumer.  The alternative would be to use 'Annotation-based' patterns, but that would involve decorating our domain objects with GraphQL-related attributes.\n\n### Return Unique Mutation Payloads\n\nAll mutations should return a unique payload object.  Generally, this will return the object being modified so that the user can decide which fields to return.  Using a unique object allows us to add future fields in future and not break the schema.\n\n### Accept Unique Mutation Inputs\n\nAll mutations should accept a unique input object.  Using a unique object allows us to add future fields in future and not break the schema.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmackay%2Fdotnet-clean-architecture-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmackay%2Fdotnet-clean-architecture-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmackay%2Fdotnet-clean-architecture-graphql/lists"}