Skip to content

Instantly share code, notes, and snippets.

Nikolas nikolasburk

Block or report user

Report or block nikolasburk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nikolasburk
nikolasburk / DepthFirstSearch.java
Created May 30, 2015
Implementation of depth first search on a tree data structure (breadth first search yet to come)
View DepthFirstSearch.java
public class DepthFirstSearch {
private Tree tree;
private Node result;
public DepthFirstSearch(Tree tree) {
this.tree = tree;
}
public Node depthFirstSearch(String name) {
View ViewController.m
//
// ViewController.m
// ButtonTest
//
// Created by Nikolas Burk on 08/04/16.
// Copyright © 2016 Nikolas Burk. All rights reserved.
//
#import "ViewController.h"
View rw-tutorial-without-code.markdown

Using GraphQL with the Apollo iOS client

Were you ever annoyed when working with a REST API because the endpoints didn't give you the data you needed for the views in your app? Getting the right information either required multiple server requests or you had to bug the backend developers to adjust the API? Worry no more, GraphQL and Apollo to the rescue! 🚀

GraphQL is a new API design paradigm that was open-sourced by Facebook in 2015. It introduces a new era for APIs by eliminating a lot of the ineffencies with today's de-facto standard REST. In contrast to REST, GraphQL APIs only expose a single endpoint and the consumer of the API can precisely specify what data they require with every request.

In this tutorial, you're going to build an iPhone app that helps users plan which iOS conferences they'd like to attend. You'll setup your own GraphQL server and interact with it from the app using the [Apollo iOS Client]

View rw-tutorial.md

Using GraphQL with the Apollo iOS client

Were you ever annoyed when working with a REST API because the endpoints didn't give you the data you needed for the views in your app? Getting the right information either required multiple server requests or you had to bug the backend developers to adjust the API? Worry no more, GraphQL and Apollo to the rescue! 🚀

GraphQL is a new API design paradigm that was open-sourced by Facebook in 2015. It introduces a new era for APIs by eliminating a lot of the ineffencies with today's de-facto standard REST. In contrast to REST, GraphQL APIs only expose a single endpoint and the consumer of the API can precisely specify what data they require with every request.

In this tutorial, you're going to build an iPhone app that helps users plan which iOS conferences they'd like to attend. You'll setup your own GraphQL server and interact with it from the app using the [Apollo iOS Client]

View app.graphql
# import Repository from "./github.graphql"
# import Organization from "./github.graphql"
type Query {
info: String!
graphcoolRepositories(names: [String!]): [Repository!]!
graphcool: Organization!
}
View prisma.graphql
# THIS FILE HAS BEEN AUTO-GENERATED BY "PRISMA DEPLOY"
# DO NOT EDIT THIS FILE DIRECTLY
#
# Model Types
#
type Post implements Node {
id: ID!
title: String!
View App.js
class App extends Component {
render() {
return <div>{this.props.data.hello}</div>
}
}
const HELLO_QUERY = gql`
query hello {
hello
}
View binding.js
const result = await binding.query.user({ id: "user123" }, `{ name }`)
View query.graphql
query {
user(id: "user123") {
name
}
}
You can’t perform that action at this time.