Fetching from databases
PostgreSQL
PostgreSQL is a powerful, open source relational database system. Modus provides a simple way to interact with PostgreSQL databases with thepostgresql
APIs.
Here is an example of fetching a person from a PostgreSQL database using the
Modus SDK:
Dgraph
Dgraph is a distributed, transactional graph database. Modus offers an easy way to query and mutate data in Dgraph with thedgraph
APIs.
Here is an example of fetching a person from a Dgraph database using the Modus
SDK:
Fetching from APIs
HTTP
HTTP protocols underpin RESTful APIs with OpenAPI schemas. Modus provides a convenient way to interact with any external HTTP API using thehttp
APIs in
the Modus SDK.
Here is an example of fetching a person from an HTTP API using the Modus SDK:
GraphQL
GraphQL is a data-centric query language for APIs that allows you to fetch only the data you need. With thegraphql
APIs in the Modus SDK, you can easily
fetch data from any GraphQL endpoint.
Here is an example of fetching a person from a GraphQL API using the Modus SDK: