Skip to content

Commit

Permalink
added some bs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedegeofroy committed Oct 15, 2024
1 parent fc3e226 commit 810b2a8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
services:
database:
restart: unless-stopped
image: postgis/postgis:16-3.4
image: postgres:latest
container_name: database
volumes:
- ~/.pg/shampsdev-db:/var/lib/postgresql/data
env_file:
- .env
ports:
- "5432:5432"
networks:
- shampsdev-db
backend:
container_name: backend
build: .
Expand All @@ -21,4 +23,11 @@ services:
- database
ports:
- "8000:8000"
restart: unless-stopped
restart: unless-stopped
networks:
- shampsdev-db

networks:
shampsdev-db:
name: shampsdev-db
external: true
34 changes: 34 additions & 0 deletions src/schema.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------

input CreateStatInput {
count: Int!
name: String!
stat_id: String!
}

"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime

type Mutation {
createStat(createStatInput: CreateStatInput!): Stat!
}

type Query {
stats: [Stat!]!
}

type Stat {
count: Float!
id: Int!
name: String!
stat_id: String!
timestamp: DateTime!
}

type Subscription {
statCreated: [Stat!]!
}

0 comments on commit 810b2a8

Please sign in to comment.