Skip to content

Commit

Permalink
fix: correct spelling of receiver (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
xbcsmith authored Apr 28, 2024
1 parent 51b0410 commit fc25368
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cli/docs/tutorials/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ receiver.
```

We can validate the new event receiver exists with the search command using the
`ID` from the create reciever command.
`ID` from the create receiver command.

```bash
epr-cli receiver search --id 01HKX0J9KS8AASMRYX61458N41 --fields all
Expand Down
8 changes: 4 additions & 4 deletions docs/tutorials/quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ As follows:

We need to craft a GraphQL query. First thing we need is an event receiver. The event receiver acts as a classification and gate for events.

We can find and event reciever by id using the following graphql query:
We can find and event receiver by id using the following graphql query:

```json
{
Expand All @@ -518,7 +518,7 @@ We can find and event reciever by id using the following graphql query:
}
```

We can query the event reciever information using a POST on the graphql endpoint as follows:
We can query the event receiver information using a POST on the graphql endpoint as follows:

```bash
curl -X POST -H "content-type:application/json" -d '{"query":"query ($er: FindEventReceiverInput!){event_receivers(event_receiver: $er) {id,name,type,version,description}}","variables":{"er":{"id":"01HPW652DSJBHR5K4KCZQ97GJP"}}}' http://localhost:8042/api/v1/graphql/query
Expand All @@ -538,7 +538,7 @@ We can query for an event by name and version using the following graphql query:
}
```

We can query the event reciever information using a POST on the graphql endpoint as follows:
We can query the event receiver information using a POST on the graphql endpoint as follows:

```bash
curl -X POST -H "content-type:application/json" -d '{"query":"query ($e : FindEventInput!){events(event: $e) {id,name,version,release,platform_id,package,description,success,event_receiver_id}}","variables":{"e": {"name":"foo","version":"1.0.0"}}}' http://localhost:8042/api/v1/graphql/query
Expand All @@ -562,7 +562,7 @@ We can query for an event receiver group by name and version using the following
}
```

We can query the event reciever information using a POST on the graphql endpoint as follows:
We can query the event receiver information using a POST on the graphql endpoint as follows:

```bash
curl -X POST -H "content-type:application/json" -d '{"query":"query ($erg: FindEventReceiverGroupInput!){event_receiver_groups(event_receiver_group: $erg) {id,name,type,version,description}}","variables":{"erg": {"name":"foobar","version":"1.0.0"}}}' http://localhost:8042/api/v1/graphql/query
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/graphql/resolvers/models_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestEventReceiver(t *testing.T) {
})
}

func TestFindEventReciever(t *testing.T) {
func TestFindEventReceiver(t *testing.T) {
findEventReceiver := FindEventReceiverInput{
ID: &id,
Name: graphql.NullString{Value: &name, Set: true},
Expand Down Expand Up @@ -161,7 +161,7 @@ func TestEventReceiverGroup(t *testing.T) {
})
}

func TestFindEventRecieverGroup(t *testing.T) {
func TestFindEventReceiverGroup(t *testing.T) {
findEventReceiverGroup := FindEventReceiverGroupInput{
ID: &id,
Name: graphql.NullString{Value: &name, Set: true},
Expand All @@ -176,7 +176,7 @@ func TestFindEventRecieverGroup(t *testing.T) {
})
}

func TestFindEventRecieverGroupToMap(t *testing.T) {
func TestFindEventReceiverGroupToMap(t *testing.T) {
findEventReceiverGroup := FindEventReceiverGroupInput{
ID: &id,
Name: graphql.NullString{Value: &name, Set: true},
Expand Down

0 comments on commit fc25368

Please sign in to comment.