Abstract:
This article takes the method using ORM model and GraphQL system to declaring and querying objects. The relational type of databases useful for storage data of different types. On the one hand, the process of storage is fast when the type of data is primitive. On the other hand, the objects involve a complex construction, from several elements, which are of a different primitive type. Arises a conflict situation: the relational databases process simple data, and the objects sum up mode data in themselves, which may have different types, but using the relational type for objects is too expensive. To solve this problem, the ORM concept was developed, which allows saving lines of code, which leads to a significant increase in the concrete, fast and concise querying databases, when it is about the storage of objects. An example of a structure that uses ORM is the GraphQL system, which is used to declare and query data structures, most exactly – objects.