Is there some modern standard for defining entity and relationship scheme?
Microsoft's Entity Framework uses an XML-based SDL which can represent pretty much everything needed, but it is older and I don't see tool support for it other than EF itself.
OpenAPI is YAML based and more modern. It has good support for describing entity types and has good tool support, but it seems to lack the ability to describe relationships.
I am looking for some standard format that has good tool support, which can be used to generate code in different languages.
Is there some modern standard for defining entity and relationship scheme?
Microsoft's Entity Framework uses an XML-based SDL which can represent pretty much everything needed, but it is older and I don't see tool support for it other than EF itself.
OpenAPI is YAML based and more modern. It has good support for describing entity types and has good tool support, but it seems to lack the ability to describe relationships.
I am looking for some standard format that has good tool support, which can be used to generate code in different languages.
Share Improve this question edited Mar 17 at 15:06 genpfault 52.2k12 gold badges91 silver badges151 bronze badges asked Mar 16 at 23:49 Rudiger W.Rudiger W. 8689 silver badges13 bronze badges1 Answer
Reset to default 1We can use GraphQL SDL to define entities and relationships in a clear, modern way, like a User type with a posts: [Post] field for a one-to-many link. It’s easy to read and uses graphql-codegen to generate code in languages like TypeScript, Java, or Python. Just write your schema, run the tool, and get your code