Skip to content

A repo made to share some example schema and codegen for apollo-ios

Notifications You must be signed in to change notification settings

tahirmt/apollo-codegen-demo

Repository files navigation

Apollo Code Gen Demo

This project demonstrates apollo code gen.

The schema is located at APISchema/schema.graphqls directory.

There is only one query node that fetches Node interface. There's a few implementations of Node.

There is a single Node query that fetches NodeFragment. The fragment contains fragments for other nodes.

Prerequisites

You need to point to your local checkout of apollographql/apollo-ios-dev#307 for this to work since it uses fields getting introduced in the PR.

Running code gen

You can run code gen using swift run codegen which executes the code gen command located at Sources/codegen/Command.swift

About

A repo made to share some example schema and codegen for apollo-ios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages