docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=PASSWORD -p 5432:5432 -d --name graphql-spring-postgres postgres
docker stop graphql-spring-postgres && docker rm graphql-spring-postgres
INSERT INTO public.store(
id, address, name, owner)
VALUES (1, 'Hackensack', 'Test', 1);
INSERT INTO public.product(
id, description, name, price, score, store_id)
VALUES (1, 'test product description', 'test product name', 10.99, 4.5, 1);
- ProductRetrieve.java
@Autowired
ProductMapper productMapper;
- StoreRetrieve.java
@Autowired
StoreMapper storeMapper;