Skip to content

Commit

Permalink
Merge pull request #17 from zeeshanakram3/fix_graphql_schema_generation
Browse files Browse the repository at this point in the history
fix: Graphql schema generation
  • Loading branch information
zeeshanakram3 authored Feb 12, 2024
2 parents f4302c0 + 9dc7c57 commit d3ce6c1
Show file tree
Hide file tree
Showing 8 changed files with 2,027 additions and 30 deletions.
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

0 comments on commit d3ce6c1

Please sign in to comment.