Mimic is released as a Desktop application, CLI(headless) tool and a set of NPM libraries.
At first Download or Other Platforms if you haven’t already.
Download an example graphQL schema tweets.graphql:
type User {
id: ID!
first_name: String
last_name: String
full_name: String
}
type Notification {
id: ID!
}
type Meta {
id: ID!
}
type Tweet {
id: ID!
title: String
Author: User
}
type Query {
Tweet(id: ID!): Tweet
Tweets(limit: Int, skip: Int, sort_field: String, sort_order: String): [Tweet]
TweetsData: Meta
User(id: ID!): User
Notifications(limit: Int): [Notification]
NotificationsMeta: Meta
}
Now you can query Mimic with GraphiQL tool:
To install a CLI version, run:
npm install -g @creditkarma/mimic-cli
CLI version works with exported service definition:
Choose location and filename for exported services (for example “exported.mimic”)
Run CLI with services you just exported:
$ mimic exported.mimic