# Create goal
```
with
$selectedUser as selectedUser,
$communityId as selectedCommunity,
$selectedOption as selectedOption // _ProtocolUsage or _GovernanceEngagement
create
(g:_Community:_Goal:_selectedOption)
set
g._goalId = apoc.create.uuid()
set
g._createdDt =
set
g._lastUpdateDt =
set
g._createdBy = selectedUser
set
g._communityId = selectedCommunity
with
g
match
(u:_User {_userId: selectedUser})
with
u, g
merge
(u)-[r:_CREATED]->(g)
return
count(r) as countCreated
```
`