Skip to content

Instantly share code, notes, and snippets.

View JasCodes's full-sized avatar
🎯
Focusing

Jaspreet Singh JasCodes

🎯
Focusing
View GitHub Profile
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class Destination {
const Destination(this.index, this.title, this.icon, this.color);
final int index;
final String title;
final IconData icon;
final MaterialColor color;
}
@JasCodes
JasCodes / graphql-typescript-typeorm.ts
Created April 1, 2018 14:34 — forked from kdby-io/graphql-typescript-typeorm.ts
An example for graphql-typescript with typeorm
import { Entity, Column, PrimaryGeneratedColumn, getRepository, CreateDateColumn, UpdateDateColumn } from 'typeorm'
import { Type, Field, ID, String, Mutation } from 'graphql-typescript'
class CreateUserArguments {
@Field(String) username: string
@Field(String) password: string
}
@Entity({ name: 'User' })
@Type