Skip to content

Instantly share code, notes, and snippets.

View hylickipiotr's full-sized avatar
⚛️
Mid React Developer

Piotr Hylicki hylickipiotr

⚛️
Mid React Developer
View GitHub Profile
@iliakan
iliakan / server.conf
Created November 6, 2015 09:26 — forked from nkt/server.conf
Nginx configuration for separated frontend and backend endpoints
upstream example-webpack {
server 127.0.0.1:8080;
}
upstream example-backend {
server 127.0.0.1:3000;
}
server {
listen 80;
@umutyerebakmaz
umutyerebakmaz / author.entity.ts
Last active April 19, 2023 17:10
TypeORM many to many lazy relation jointable custom table name TypeGraphQL Example (with bi-directional conect GraphQL Approach)
import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToMany } from 'typeorm';
import { ObjectType, Field, ID, InputType, ArgsType, Int } from 'type-graphql';
import { Book } from '../book/book.entity';
@Entity()
@ObjectType()
export class Author extends BaseEntity {
@PrimaryGeneratedColumn("uuid")
@Field(type => ID)