# Apoc.schema.assert() compatible with indexing relationship properties?

**URL:** <https://community.neo4j.com/t/apoc-schema-assert-compatible-with-indexing-relationship-properties/46445>\
**Category:** Procedures & APOC\
**Created:** [October 26, 2021, 1:53am UTC](https://community.neo4j.com/t/apoc-schema-assert-compatible-with-indexing-relationship-properties/46445 "2021-10-26T01:53:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skerr](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/skerr/32/7308_2.png) [@skerr](https://community.neo4j.com/u/skerr)\
**Post date:** [October 26, 2021, 1:53am UTC](https://community.neo4j.com/t/apoc-schema-assert-compatible-with-indexing-relationship-properties/46445/1 "2021-10-26T01:53:23Z")

</div>

Just checking in to see if the latest version of APOC's apoc.schema.assert() procedure is compatible with Neo4j's capability to index relationship properties. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![skerr](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/skerr/32/7308_2.png) [@skerr](https://community.neo4j.com/u/skerr)\
**Post date:** [October 28, 2021, 9:23pm UTC](https://community.neo4j.com/t/apoc-schema-assert-compatible-with-indexing-relationship-properties/46445/2 "2021-10-28T21:23:53Z")

</div>

Here is an update:  
Using the following graph:

```auto
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/mathbeveridge/gameofthrones/master/data/got-s1-edges.csv" as row
MERGE (s:Character{name:row.Source})
MERGE (t:Character{name:row.Target})
MERGE (s)-[i:INTERACTS]-(t)
SET i.weight = toInteger(row.Weight)

```

Making apoc.schema.assert() call:

```auto
CALL apoc.schema.assert({INTERACTS:['weight']},{});ype or paste code here

```

Returned we get:

```auto
label	key	keys	unique	action
INTERACTS	weight	[weight]	False	CREATED

```

Which seems to be correct, until the relationship type: INTERACTS is interpreted as a node label:

```auto
id	name	state	populationPercent	uniqueness	type	entityType	labelsOrTypes	properties	indexProvider
1	index_343aff4e	ONLINE	100.0	NONUNIQUE	LOOKUP	NODE	None	None	token-lookup-1.0
3	index_804fba7c	ONLINE	100.0	NONUNIQUE	BTREE	NODE	[INTERACTS]	[weight]	native-btree-1.0
2	index_f7700477	ONLINE	100.0	NONUNIQUE	LOOKUP	RELATIONSHIP	None	None	token-lookup-1.0

```

QUESTION: is the Relationship property "weight" indexed?
