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
fastlane_version "1.100.0" | |
default_platform :ios | |
platform :ios do | |
desc "Runs all the tests" | |
lane :test do | |
scan | |
end |
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
# this must point to the private repository you are gonna use for storing certificates | |
git_url "git+ssh://git@github.com/callmephilip/todos-certs.git" | |
type "development" | |
app_identifier "io.thebakery.todos" | |
username "developers@thebakery.io" |
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
const RootQuery = { | |
type: new GraphQLList(TodoSchemaType), | |
resolve: (_, { text }, { Query, user }) => { | |
const query = new Query(Todo); | |
return query.find(); | |
} | |
}; |
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 express from 'express'; | |
import parseGraphQLHTTP from 'parse-graphql-server'; | |
const app = express(); | |
app.use('/graphql', parseGraphQLHTTP({ schema, graphiql: true, })); | |
app.listen(process.env.PORT, () => { | |
console.log('server running'); | |
}); |
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 GraphQLClient from 'parse-graphql-client'; | |
const client = new GraphQLClient(settings.graphqlURL, require('parse/react-native')); | |
client.query(` | |
{ | |
todos { | |
id, text, isComplete | |
} | |
} |
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
const RootQuery = { | |
type: new GraphQLList(TodoSchemaType), | |
resolve: (_, args, sessionToken) => { | |
const query = new Parse.Query(Todo); | |
return query.find({ sessionToken }); | |
} | |
}; |
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 graphqlHTTP from 'express-graphql'; | |
const app = express(); | |
app.use('/graphql', graphqlHTTP(function(request) { | |
return { | |
schema: MyGraphQLSchema, | |
graphiql: true, | |
context: sessionToken: request.headers && request.headers.authorization | |
}; |
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
const query = new Parse.Query(Todo); | |
return query.find({ sessionToken }); |
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 { View, Platform } from 'react-native'; | |
import React, { Component } from 'react'; | |
import styles from './styles'; | |
import MainNavigation from '../MainNavigation'; | |
import AddTodoItem from '../AddTodoItem'; | |
class App extends Component { | |
render() { | |
return ( | |
<View style={ styles.container }> |