This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"analysis": { | |
"filter": { | |
"english_stop": { | |
"type": "stop", | |
"stopwords": "_english_" | |
}, | |
"english_stemmer": { | |
"type": "stemmer", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { container } from 'redux-relay'; | |
@container({ | |
variablesFromState: (state) => ({myVariable: state.myState}) | |
fragments: { | |
Relay.QL` | |
viewer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import 'fontfaceobserver' | |
import IndexPage from './IndexPage' | |
import Loader from './Loader' | |
import { fetchUser } from '../apiclient' | |
import 'font-awesome-webpack' | |
import './Lato-font.css' | |
import './Roboto-font.css' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import { ConnectionHandler } from 'relay-runtime'; | |
import { isObject, isArray } from 'lodash/fp'; | |
export function listRecordRemoveUpdater({ parentId, itemId, parentFieldName, store }) { | |
const parentProxy = store.get(parentId); | |
const items = parentProxy.getLinkedRecords(parentFieldName); | |
parentProxy.setLinkedRecords(items.filter(record => record._dataID !== itemId), parentFieldName); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { from, ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'; | |
import { errorLink } from './error.link'; | |
import * as tags from './posts.resolvers'; | |
const typeDefs = [tags.typeDefs]; | |
const resolvers = [tags.resolvers]; | |
const gqlClient = new ApolloClient({ | |
cache: new InMemoryCache(), | |
typeDefs, |