• This repository has been archived on 04/Jun/2020
  • Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    C#
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn how to implement scalable APIs with GraphQL and ASP.NET Core. Branch wise code with relevant topic for smooth and easy walkthrough.

GraphQL with ASP.NET Core - A 10 Part Blog Series

This repository contains a series of posts with branch wise code on builing scalable GraphQL end-points with ASP.NET Core. Each branch has its own readme where you can find rach relevent post. You can also read the series from my blog,

http://fiyazhasan.me/tag/graphql-dotnet/

Ask anything you want in the comment section of my blog.

Running the application

  • Download the zip or clone the project
  • Make sure you have necessary dotnet core sdks installed (I'm using ASP.NET Core 2.1)

https://www.microsoft.com/net/download/windows

  • Build and run the project

dotnet build dotnet run

Optional ( If you want a real database behind the scene )

  • Make sure you have Postgres installed in your system

https://postgresapp.com/

  • Change the connection string in appsettings.json to target your local posgres database.
  • From command line go to the root of the project and create a db migration script

dotnet ef migrations add Initial -o Data/Migrations

  • Apply migration in your database

dotnet ef database update

Branches

Part I - Hello World

Part II - Middleware

Part III - Dependency Injection

Part IV - GraphiQL - An in-browser IDE

Part V - Fields, Arguments, Variables

Part VI - Persist Data - Postgres with EF Core

Part VII - Mutation

Part VIII - Entity Relations - One to Many

Part IX - Entity Relations - Many to Many

Part X - Data Loader

Video Tutorials

Coming Soon...

Mentions

Joe McBride - Thanks for providing an awesome community driven project

graphql-dotnet

Jon Galloway - Thanks for featuring posts on ASP.NET Community Standup

More Repositories

1

AngularSpaCore

My take on building a single page application starter template for ASP.NET Core. You can find all sorts of samples used in every day life
TypeScript
36
star
2

GraphQLCoreFromScratch

Learn how to implement scalable APIs with GraphQL and ASP.NET Core. Branch-wise code with the relevant topic for a smooth and easy walkthrough.
JavaScript
22
star
3

CoreFormatters

.NET Core Custom Formatter for Yaml
C#
21
star
4

FlashCards

Learning Blazor By Creating A Flash Cards Application
HTML
20
star
5

ng-playground

Hand-picked interesting topics of Angular. Branch-wise code with the relevant blog post for a smooth and easy walkthrough.
TypeScript
19
star
6

AngularXSRFCore

preventing xsrf in angular app with asp.net core rc2 antiforgery middleware
C#
11
star
7

TagHelperComponentSample

This repository demostrates how to add dynamic CSS and JS scripts to your razor pages with ASP.NET Core Tag Helper Components.
C#
9
star
8

MudBlazorTemplates

Blazor server and web assembly templates wired up with MudBlazor instead of Bootstrap
HTML
8
star
9

BlazorFluxorTemplates

These are some project templates for Blazor Server & WebAssembly wired up with Fluxor.
HTML
6
star
10

PolymerCore

C#
6
star
11

FakingIsNotMocking

C#
3
star
12

AngularSpaMaterialCore

TypeScript
3
star
13

AngularSpaMaterial

TypeScript
3
star
14

FlashCardsWasm

HTML
2
star
15

RefitDemo

C#
2
star
16

GenericMediatRFeatures

C#
2
star
17

Typescript-ASP.NET-CORE

JavaScript
2
star
18

Antiforgery

JavaScript
2
star
19

RangeEtagsLastModified

Sample for trying out ETag, LastModifiedOn, and Range headers for file action result
C#
2
star
20

jQWidgets-TreeGrid

Fun with jQWidgets (jqxTreeGrid)
CSS
2
star
21

NodeServicesDemo

C#
2
star
22

MiddlewareExtensions

C#
1
star
23

FunWithGenerics

C#
1
star
24

Javascript-Algorithm-Data-Structure

JavaScript
1
star
25

Angular-Elements

TypeScript
1
star
26

Algorithm-Data-Structure

1
star
27

asp.net-core-xsrf-angular

JavaScript
1
star
28

DesignPatternCSharp

1
star
29

asp-net-core-web-api-with-angularjs

HTML
1
star