https://github.com/adelarsq/falco_graphql_sample
Falco GraphQL Sample 🐣💙💛🤍💚
https://github.com/adelarsq/falco_graphql_sample
api dotnet fsharp graphql sample sample-app
Last synced: 11 months ago
JSON representation
Falco GraphQL Sample 🐣💙💛🤍💚
- Host: GitHub
- URL: https://github.com/adelarsq/falco_graphql_sample
- Owner: adelarsq
- License: other
- Created: 2022-10-15T17:05:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T20:37:39.000Z (about 2 years ago)
- Last Synced: 2025-04-19T19:04:48.959Z (about 1 year ago)
- Topics: api, dotnet, fsharp, graphql, sample, sample-app
- Language: F#
- Homepage:
- Size: 22.5 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Falco GraphQL Sample using .NET 8
[Falco](https://www.falcoframework.com/) is a toolkit for building secure, fast, functional-first and fault-tolerant web applications using [F#](https://fsharp.org).
[GraphQL](https://graphql.org) is an open-source data query and manipulation language for APIs.
This project is a sample showing how to use GraphQL on Falco using [.NET 8](https://dotnet.microsoft.com).
For .NET 6 check [dotnet_6](https://github.com/adelarsq/falco_graphql_sample/tree/dotnet_6) branch.
## How to use?
On the terminal run with:
```
cd src/HelloWorld
dotnet run
```
The server will start on the address `http://127.0.0.1:8080`.
## Queries
With a GraphQL client you can test with the follow queries:
```graphql
query {
viewer {
id
name
age
}
}
```

Query with fragments:
```graphql
fragment userFragment on User {
widgets(first: 10) {
edges {
node {
id
name
}
}
}
}
query {
viewer {
...userFragment
}
}
```

## Acknowledgments
- [Falco](https://www.falcoframework.com)
- [FSharp.Data.GraphQL](https://github.com/fsprojects/FSharp.Data.GraphQL)