One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import React, { useContext, useEffect } from "react"; | |
| import { Flex, Text, Close, Grid } from "theme-ui"; | |
| import { StateContext, DispatchContext } from "./../context"; | |
| import { gql, useLazyQuery } from "@apollo/client"; | |
| const Categories = () => { | |
| const state = useContext(StateContext); | |
| const dispatch = useContext(DispatchContext); | |
| const [loadCategories, { loading, error, data }] = useLazyQuery(GET_CATEGORIES, { |
| const faker = require('faker'); | |
| const fs = require('fs'); | |
| const fastcsv = require("fast-csv"); | |
| const db = require('./db'); | |
| const contains = require('validator/lib/contains'); | |
| // The path to write the csv file to | |
| const output = './src/output.csv'; | |
| // Create a stream to write to the csv file |
| // schema | |
| model Company { | |
| id Int @id @default(autoincrement()) | |
| name String | |
| trades Trade[] | |
| } | |
| model Trade { | |
| id Int @id @default(autoincrement()) |
| // company.ts | |
| import { arg, extendType, inputObjectType, intArg, list, nonNull, objectType, stringArg } from "nexus"; | |
| export const CompanyInputType = inputObjectType({ | |
| name: 'CompanyInputType', | |
| definition(t) { | |
| t.string('name') | |
| t.string('contactPerson') | |
| t.string('bio') |
First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)
$ git checkout masterFetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master