# Bug in database

**URL:** <https://community.appfarm.io/t/bug-in-database/374>\
**Category:** Ask the community\
**Tags:** data-model\
**Created:** [March 24, 2023, 9:02am UTC](https://community.appfarm.io/t/bug-in-database/374 "2023-03-24T09:02:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Henrik](https://community.appfarm.io/u/Henrik)\
**Post date:** [March 24, 2023, 9:02am UTC](https://community.appfarm.io/t/bug-in-database/374/1 "2023-03-24T09:02:22Z")

</div>

I have a bug i cant seem to figure out with an object that looks like it exists only in another object.

I have a object {relationObject}, This object hods {objectOne} and {objectTwo}. I can see that the {relationObject} holds both of these objects  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/9a3e2d96875ec582070ec00ae05a392c273759eb.png) But when i look in the database for {objectOne} it does not exist.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/302de09bb489c6a2a3cb3eb194620a6e8f4e355b.png) these should be the same, when searching for the ID of the {objectOne} thats in the {relationObject} in the database of all {objectOne} i cant find it.

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [March 24, 2023, 9:08am UTC](https://community.appfarm.io/t/bug-in-database/374/2 "2023-03-24T09:08:43Z")

</div>

Hi!

That depends on the delete rules on that relationship object class.

E.g. “Person Tags” object class has a property “Person” and another property “Tag”. Both of these properties refer to their respective object classes Person and Tag.

If Person Tags.Person has delete rule “None”, then the Person it refers to may be deleted without any restrictions. When that happens, the entry in Person Tags pointing to that deleted Person will have an ID pointing towards nothing (the person with that ID is deleted).

Have you searched the database for {objectOne} using [GraphQL](https://docs.appfarm.io/reference/global-data-model/graphql/queries#filter) to verify it really is deleted?

---

<div class="post-metadata">

**Author:** ![Henrik](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Henrik](https://community.appfarm.io/u/Henrik)\
**Post date:** [March 24, 2023, 9:39am UTC](https://community.appfarm.io/t/bug-in-database/374/3 "2023-03-24T09:39:04Z")

</div>

i tried this  
{  
objectOne(filter: {  
id\_: “631869e56df2e3bf5cf39bb1”

})  
}

But im getting errors that some “updatedObject” does not match a regex

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [March 24, 2023, 9:54am UTC](https://community.appfarm.io/t/bug-in-database/374/4 "2023-03-24T09:54:48Z")

</div>

Looks to me that that graphQL query is slightly incorrect (filters may be seen [here](https://docs.appfarm.io/reference/global-data-model/graphql/queries#filter), but it’s easy to miss a paranthesis or so)

{  
objectOne(filter: {  
\_id: {eq: “631869e56df2e3bf5cf39bb1”}  
})  
}

---

<div class="post-metadata">

**Author:** ![Henrik](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Henrik](https://community.appfarm.io/u/Henrik)\
**Post date:** [March 24, 2023, 11:21am UTC](https://community.appfarm.io/t/bug-in-database/374/5 "2023-03-24T11:21:28Z")

</div>

im still recieving the same error. looks like there is an issue with æøå in the name of some objects, their nodenames/endpointnames does not include æøå.

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [April 4, 2023, 8:07am UTC](https://community.appfarm.io/t/bug-in-database/374/6 "2023-04-04T08:07:42Z")

</div>

Try disabling GraphQL for the object class with æøå in the name, or override the default “Endpoint Name” in the GrapghQL settings on the Object Class.

If that solves the case, we have an issue registered on this, it is in fact solved in the upcoming release after the easter holiday.
