COVESA / COVESA/s2dm

Automatic generation of queries and mutations

Open
#139 0 comments 0 reactions 0 assignees View on GitHub
help wanted question
Dominant language
Python
Stars
17
Forks
10
Avg merge
1d 10h
Merged PRs (30d)
2

Description

Since s2dm modeling approach aims to empower domain experts (usually non-modelers), the idea is that they model actively in the GraphQL SDL type system. To keep it simple, the capabilities on the data described in the SDL can be automatically created in the form of `Query` and `Mutation`. For example:

The data structure is maintained by domain expert: What a seat is and what fields does it have?
```graphql
type Seat {
...
}
```

whereas the capabilities are produced automatically by the tools: What a seat can do (or what one can do on a seat)?

```graphql
type Query {
...
}

type Mutation {
...
}
```

What is the best generic pattern that makes sense to use for those API operation templates?

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files, tests, or entry points. Start from the GraphQL SDL examples and establish the intended generic Query and Mutation templates; done means the pattern and scope are agreed clearly enough to implement.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.