Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Graphql schema generation #17

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

# 1.4.4

- Modified script to save graphql schema in `./generated/schema.graphql` file so that it can be fetched directly, previously the schema was generated and returned by spinning up the graphql server.
- **FIX**: Start the postgres DB in `generate-graphql-schema.sh` script.


# 1.4.3

- Allow configuring RPC rate limit via `RPC_RATE_LIMIT` environment variable.
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-alpine AS node
RUN apk add bash

FROM node AS node-with-gyp
RUN apk add g++ make python3
Expand Down Expand Up @@ -27,7 +28,6 @@ ADD assets assets
RUN npm ci --omit=dev

FROM node AS squid
RUN apk add bash
WORKDIR /squid
COPY --from=deps /squid/package.json .
COPY --from=deps /squid/package-lock.json .
Expand All @@ -38,6 +38,7 @@ ADD db db
ADD assets assets
ADD schema schema
ADD scripts scripts
ADD generated generated
ADD opentelemetry opentelemetry
ENV PROCESSOR_PROMETHEUS_PORT 3000
EXPOSE 3000
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ install:

build:
@npm run build
@npm run generate-graphql-schema

build-docker:
@docker build . -t joystream/storage-squid
Expand All @@ -30,7 +31,7 @@ generate-migrations:
@docker volume rm temp_migrations_db_volume || true

codegen:
@npm run generate:schema || true
@npm run generate:input-schema || true
@npx squid-typeorm-codegen

typegen:
Expand Down
Loading
Loading