Skip to content

Commit

Permalink
feat: Example expressjs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Nov 14, 2019
1 parent f6eeb1b commit 3b79989
Show file tree
Hide file tree
Showing 7 changed files with 3,599 additions and 0 deletions.
63 changes: 63 additions & 0 deletions examples/expressjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# DAF expressjs example

## Install

```
npm i
```

## Start

```
npm start
```

## Usage

By default it using the same data as `daf-cli`.

Open `https://{CHANGE_THIS}.ngrok.io/graphql` and play around.

Here are some sample queries:

```graphql

query MyDids{
managedIdentities {
did
}
}

mutation CreateNewDid{
createIdentity(type: "ethr-did-fs") {
did
}
}

query AllDataStoreMessages {
messages {
iat
nbf
iss {
did
}
sub {
did
}
type
vc {
fields{
type
}
}
}
}

query AllDataStoreIdentities {
identities {
did
shortId
}
}

```
Loading

0 comments on commit 3b79989

Please sign in to comment.