-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6eeb1b
commit 3b79989
Showing
7 changed files
with
3,599 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||
} | ||
} | ||
|
||
``` |
Oops, something went wrong.