Skip to content

Commit

Permalink
[automated commit] Bump docs to version 1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leorossi authored and github-actions[bot] committed Feb 6, 2024
1 parent a74a33f commit 656dc55
Show file tree
Hide file tree
Showing 159 changed files with 486 additions and 218 deletions.
139 changes: 0 additions & 139 deletions versioned_docs/version-1.15.1/guides/applications-with-stackables.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A Platformatic Service is an HTTP server based on [Fastify](https://www.fastify.
With Platformatic Service you can:
- Add custom functionality in a [Fastify plugin](https://fastify.dev/docs/latest/Reference/Plugins)
- Write plugins in JavaScript or [TypeScript](https://www.typescriptlang.org/)
- Optionally user TypeScript to write your application code
- Optionally use TypeScript to write your application code

A Platformatic Service is the basic building block of a Platformatic application.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,19 +535,19 @@ handling for us:
// src/lib/quotes-api.js

async function graphqlClientWrapper(method, gqlQuery, queryVariables = {}) {
const queryResult = await graphqlClient[method](
gqlQuery,
queryVariables
).toPromise();
const queryResult = await graphqlClient[method](
gqlQuery,
queryVariables
).toPromise();

if (queryResult.error) {
console.error("GraphQL error:", queryResult.error);
}
if (queryResult.error) {
console.error("GraphQL error:", queryResult.error);
}

return {
data: queryResult.data,
error: queryResult.error,
};
return {
data: queryResult.data,
error: queryResult.error,
};
}

export const quotesApi = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Create a `platformatic.db.json` file in the root project, it will be loaded auto
- Once Platformatic DB starts, its API will be available at `http://127.0.0.1:3042`
- It will connect and read the schema from a PostgreSQL DB
- Will read migrations from `./migrations` directory
- Will load custom functionallity from `./plugin.js` file.
- Will load custom functionality from `./plugin.js` file.
## Database and Migrations

Start the database using the sample `docker-compose.yml` file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ curl http://localhost:3042/v2/users

### Generating the mapper plugin with OpenAI

Platformatic supports generating the mapper plugin automatically using the OpenAI. Before doing make sure that you have a platformatic user API key. If not you can generate it by running the following command:
Platformatic supports generating the mapper plugin automatically using the OpenAI. Before doing so, make sure you have a platformatic user API key. If not, you can generate it by running the following command:

```bash
npx platformatic@latest login
Expand Down
Loading

0 comments on commit 656dc55

Please sign in to comment.