Skip to content

Commit

Permalink
chore(core): Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrg committed Aug 1, 2024
1 parent 67706dc commit d49bbf7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,13 +528,13 @@ To do so, we can use the `.` (dot) notation to access nested properties in the c
import { RulePilot, Rule } from "rulepilot";

const rule: Rule = {
conditions: [
{
conditions: {
all: [{
field: "profile.age",
operator: ">=",
value: 18,
},
],
}],
},
};

const criteria = {
Expand All @@ -557,11 +557,11 @@ import { RulePilot, Rule } from "rulepilot";

const rule: Rule = {
conditions: {
any: {
any: [{
field: "profile.age",
operator: ">=",
value: 18,
},
}],
},
};

Expand Down Expand Up @@ -635,7 +635,7 @@ import { fetchAccount } from './api'

const rule: Rule = {
conditions: [{
"all": [{
all: [{
field: "account.balance",
operator: ">=",
value: 100.00,
Expand Down

0 comments on commit d49bbf7

Please sign in to comment.