https://github.com/adamfisher/waveapps.graphqlbuilder
A C# GraphQL query builder for waveapps.com.
https://github.com/adamfisher/waveapps.graphqlbuilder
csharp dotnet graphql graphql-builder graphql-client graphql-query-builder netstandard wave-accounting waveapps
Last synced: 3 months ago
JSON representation
A C# GraphQL query builder for waveapps.com.
- Host: GitHub
- URL: https://github.com/adamfisher/waveapps.graphqlbuilder
- Owner: adamfisher
- License: mit
- Created: 2023-05-27T17:16:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T19:51:14.000Z (about 3 years ago)
- Last Synced: 2025-02-11T23:43:15.347Z (over 1 year ago)
- Topics: csharp, dotnet, graphql, graphql-builder, graphql-client, graphql-query-builder, netstandard, wave-accounting, waveapps
- Language: C#
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [](https://www.waveapps.com/) WaveApps.GraphQLBuilder
[](https://www.nuget.org/packages/WaveApps.GraphQLBuilder)
[](https://github.com/adamfisher/WaveApps.GraphQLBuilder/blob/main/LICENSE)
A C# GraphQL query builder for [waveapps.com](https://www.waveapps.com/). Use this library to build strongly-typed queries in C# that can then be used with a GraphQL client to send commands to the Wave API. This client was code generated against the schema definition and maps 100% of the API operations and models.
## Resources
- [Wave Developer Portal](https://developer.waveapps.com/hc/en-us/categories/360001114072-Documentation)
- [Wave API Playground (GraphQL Explorer)](https://developer.waveapps.com/hc/en-us/articles/360018937431-API-Playground)
- [Wave GraphQL API Reference](https://developer.waveapps.com/hc/en-us/articles/360019968212-API-Reference)
## Examples
For more query examples, see the [query examples](https://developer.waveapps.com/hc/en-us/sections/360006441372-Examples) in the Wave developer portal.
### List Businesses
A query constructed like this:
```c#
var query = new WaveQueryBuilder()
.WithBusinesses(
new BusinessConnectionQueryBuilder()
.WithEdges(new BusinessEdgeQueryBuilder()
.WithNode(new BusinessQueryBuilder()
.WithId()
.WithName())))
.Build();
```
Will yield the following string from the `.Build()` method:
```graphql
query {
businesses {
edges {
node {
id
name
}
}
}
}
```
### Get User
Get the currently logged in user:
```c#
var query = new WaveQueryBuilder()
.WithUser(new UserQueryBuilder()
.WithId()
.WithFirstName()
.WithLastName()
.WithDefaultEmail()
.WithCreatedAt()
.WithCreatedAt()
.WithModifiedAt()
).Build();
```
Will yield the following string from the `.Build()` method:
```graphql
query {
user {
id
firstName
lastName
defaultEmail
createdAt
modifiedAt
}
}
```